1
0
Fork 0
mirror of https://github.com/Detanup01/gbe_fork.git synced 2025-07-30 12:15:28 +02:00

output verbose func signature on linux

This commit is contained in:
otavepto 2024-04-14 20:56:18 +02:00
parent 466b846943
commit d36ec05f1b

View file

@ -209,8 +209,8 @@ static inline void reset_LastError()
auto __prnt_dbg_ms = std::chrono::duration_cast<std::chrono::duration<unsigned long long, std::milli>>(__prnt_dbg_duration); \
auto __prnt_dbg_f = fopen(dbg_log_file.c_str(), "a"); \
if (!__prnt_dbg_f) break; \
fprintf(__prnt_dbg_f, "[%llu ms, %llu us] [tid %ld] %s() " a "\n", \
__prnt_dbg_ms.count(), __prnt_dbg_micro.count(), syscall(SYS_gettid), __FUNCTION__, ##__VA_ARGS__); \
fprintf(__prnt_dbg_f, "[%llu ms, %llu us] [tid %ld] %s " a "\n", \
__prnt_dbg_ms.count(), __prnt_dbg_micro.count(), syscall(SYS_gettid), __PRETTY_FUNCTION__, ##__VA_ARGS__); \
fclose(__prnt_dbg_f); \
} while (0)
#else