[utils] TRACELOG macros proposal
This commit is contained in:
parent
6ee7a81272
commit
1f53fc3b67
12
src/utils.h
12
src/utils.h
|
|
@ -32,6 +32,18 @@
|
||||||
#include <android/asset_manager.h> // Required for: AAssetManager
|
#include <android/asset_manager.h> // Required for: AAssetManager
|
||||||
#endif
|
#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
|
// Some basic Defines
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user