diff options
| author | raysan5 <raysan5@gmail.com> | 2016-07-18 17:06:33 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-07-18 17:06:33 +0200 |
| commit | 5ff9811ea8ece7adb8e999a0beb063a678b502d0 (patch) | |
| tree | 33d0704cec71952be42c8add82becc20629e22be /src/utils.c | |
| parent | 6c2dc5574f2be4c68a222d56923e0653d40fc7b3 (diff) | |
| download | raylib-5ff9811ea8ece7adb8e999a0beb063a678b502d0.tar.gz raylib-5ff9811ea8ece7adb8e999a0beb063a678b502d0.zip | |
Some code tweaks
Diffstat (limited to 'src/utils.c')
| -rw-r--r-- | src/utils.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c index 5340b3e5..36b06f0f 100644 --- a/src/utils.c +++ b/src/utils.c @@ -205,6 +205,11 @@ void TraceLog(int msgType, const char *text, ...) void TraceLog(int msgType, const char *text, ...) { static char buffer[100]; + int traceDebugMsgs = 1; + +#ifdef DO_NOT_TRACE_DEBUG_MSGS + traceDebugMsgs = 0; +#endif switch(msgType) { @@ -226,7 +231,7 @@ void TraceLog(int msgType, const char *text, ...) case INFO: __android_log_vprint(ANDROID_LOG_INFO, "raylib", buffer, args); break; case ERROR: __android_log_vprint(ANDROID_LOG_ERROR, "raylib", buffer, args); break; case WARNING: __android_log_vprint(ANDROID_LOG_WARN, "raylib", buffer, args); break; - case DEBUG: __android_log_vprint(ANDROID_LOG_DEBUG, "raylib", buffer, args); break; + case DEBUG: if (traceDebugMsgs) __android_log_vprint(ANDROID_LOG_DEBUG, "raylib", buffer, args); break; default: break; } |
