diff options
| author | Ray <[email protected]> | 2020-02-03 18:31:30 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-02-03 18:31:30 +0100 |
| commit | 40b73a8a91afb26becfcb39560dae73447ce15af (patch) | |
| tree | c00df37c9488649f694304149b45043165128b71 /src/utils.h | |
| parent | 6f3c99a295533e41de3049db5e683d15fd5c6e1a (diff) | |
| download | raylib-40b73a8a91afb26becfcb39560dae73447ce15af.tar.gz raylib-40b73a8a91afb26becfcb39560dae73447ce15af.zip | |
Develop branch integration (#1091)
* [core] REDESIGNED: Implement global context
* [rlgl] REDESIGNED: Implement global context
* Reviewed globals for Android
* Review Android globals usage
* Update Android globals
* Bump raylib version to 3.0 !!!
* [raudio] REDESIGNED: Implement global context
* [raudio] Reorder functions
* [core] Tweaks on descriptions
* Issues with SUPPORT_MOUSE_GESTURES
* [camera] Use global context
* REDESIGN: Move shapes drawing texture/rec to RLGL context
* Review some issues on standalone mode
* Update to use global context
* [GAME] Upload RE-PAIR game from GGJ2020 -WIP-
* Update game: RE-PAIR
* [utils] TRACELOG macros proposal
* Update config.h
Diffstat (limited to 'src/utils.h')
| -rw-r--r-- | src/utils.h | 12 |
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 //---------------------------------------------------------------------------------- |
