Macro for non spawned CBA Debug Logging

This commit is contained in:
PabstMirror 2015-09-25 22:30:57 -05:00
parent 5f7c30dd7c
commit 8bb5f71ba1

View File

@ -99,6 +99,11 @@
#define ACE_isHC (!hasInterface && !isDedicated)
//By default CBA's TRACE/LOG/WARNING spawn a buffer, which can cause messages to be logged out of order:
#ifdef CBA_DEBUG_SYNCHRONOUS
#define CBA_fnc_log { params ["_file","_lineNum","_message"]; diag_log [diag_frameNo, diag_tickTime, time, _file + ":"+str(_lineNum + 1), _message]; }
#endif
#define ACE_LOG(module,level,message) diag_log text ACE_LOGFORMAT(module,level,message)
#define ACE_LOGFORMAT(module,level,message) FORMAT_2(QUOTE([ACE] (module) %1: %2),level,message)