From 40b73a8a91afb26becfcb39560dae73447ce15af Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 3 Feb 2020 18:31:30 +0100 Subject: 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 --- src/utils.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/utils.h') 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 // 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 //---------------------------------------------------------------------------------- -- cgit v1.2.3