summaryrefslogtreecommitdiffhomepage
path: root/src/utils.h
diff options
context:
space:
mode:
authorRay <[email protected]>2020-02-03 19:13:24 +0100
committerRay <[email protected]>2020-02-03 19:13:24 +0100
commitcde26c743c382abea56ea5cd9c88d36970a61eea (patch)
tree0b54c78c5fa8f5f4b2c99778cd6dc228b512e0ca /src/utils.h
parent40b73a8a91afb26becfcb39560dae73447ce15af (diff)
downloadraylib-cde26c743c382abea56ea5cd9c88d36970a61eea.tar.gz
raylib-cde26c743c382abea56ea5cd9c88d36970a61eea.zip
Replace TraceLog() function by TRACELOG macro
Added SUPPORT_TRACELOG_DEBUG config
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils.h b/src/utils.h
index 94414c05..756b6553 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -38,10 +38,11 @@
#if defined(SUPPORT_TRACELOG_DEBUG)
#define TRACELOGD(...) TraceLog(LOG_DEBUG, __VA_ARGS__)
#else
- #define TRACELOGD(...) void(0)
+ #define TRACELOGD(...) (void)0
#endif
#else
- #define TRACELOG(level, ...) void(0)
+ #define TRACELOG(level, ...) (void)0
+ #define TRACELOGD(...) (void)0
#endif
//----------------------------------------------------------------------------------