mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-01-12 02:19:31 +08:00
use the macro extension ##__VA_ARGS on windows to allow gcc compilation via msys2
This commit is contained in:
parent
478e2b3b52
commit
1f51518734
@ -198,7 +198,7 @@ static inline void reset_LastError()
|
|||||||
auto __prnt_dbg_f = fopen(dbg_log_file.c_str(), "a"); \
|
auto __prnt_dbg_f = fopen(dbg_log_file.c_str(), "a"); \
|
||||||
if (!__prnt_dbg_f) break; \
|
if (!__prnt_dbg_f) break; \
|
||||||
fprintf(__prnt_dbg_f, "[%llu ms, %llu us] [tid %lu] %s() " a "\n", \
|
fprintf(__prnt_dbg_f, "[%llu ms, %llu us] [tid %lu] %s() " a "\n", \
|
||||||
__prnt_dbg_ms.count(), __prnt_dbg_micro.count(), GetCurrentThreadId(), __FUNCTION__, __VA_ARGS__); \
|
__prnt_dbg_ms.count(), __prnt_dbg_micro.count(), GetCurrentThreadId(), __FUNCTION__, ##__VA_ARGS__); \
|
||||||
fclose(__prnt_dbg_f); \
|
fclose(__prnt_dbg_f); \
|
||||||
WSASetLastError(0); \
|
WSASetLastError(0); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user