summaryrefslogtreecommitdiffhomepage
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index 31c54aa5..94414c05 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -32,6 +32,18 @@
#include <android/asset_manager.h> // Required for: AAssetManager
#endif
+#if defined(SUPPORT_TRACELOG)
+ #define TRACELOG(level, ...) TraceLog(level, __VA_ARGS__)
+
+ #if defined(SUPPORT_TRACELOG_DEBUG)
+ #define TRACELOGD(...) TraceLog(LOG_DEBUG, __VA_ARGS__)
+ #else
+ #define TRACELOGD(...) void(0)
+ #endif
+#else
+ #define TRACELOG(level, ...) void(0)
+#endif
+
//----------------------------------------------------------------------------------
// Some basic Defines
//----------------------------------------------------------------------------------