use the macro extension ##__VA_ARGS on windows to allow gcc compilation via msys2

This commit is contained in:
otavepto 2024-05-22 03:27:47 +03:00
parent 478e2b3b52
commit 1f51518734

View File

@ -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)