1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Include semicolon in macro.

Otherwise we'd have to leave empty statements throughout the code when traceback is disabled.
This commit is contained in:
Sandu Liviu Catalin 2019-06-02 15:41:25 +03:00
parent 7efe523843
commit faf0aea78e

View File

@ -559,13 +559,13 @@ enum EntityType
* EVENT TRACEBACK
*/
#if defined(_DEBUG) || defined(SQMOD_ENABLE_SV_EV_TRACEBACK)
#define SQMOD_SV_EV_TRACEBACK(m, ...) LogDbg(m, ##__VA_ARGS__)
#define SQMOD_SV_EV_TRACEBACK(m, ...) LogDbg(m, ##__VA_ARGS__);
#else
#define SQMOD_SV_EV_TRACEBACK(m, ...) /*ignored...*/
#endif // _DEBUG
#if defined(_DEBUG) || defined(SQMOD_ENABLE_CO_EV_TRACEBACK)
#define SQMOD_CO_EV_TRACEBACK(m, ...) LogSDbg(m, ##__VA_ARGS__)
#define SQMOD_CO_EV_TRACEBACK(m, ...) LogSDbg(m, ##__VA_ARGS__);
#else
#define SQMOD_CO_EV_TRACEBACK(m, ...) /*ignored...*/
#endif // _DEBUG