aboutsummaryrefslogtreecommitdiff
path: root/sokol_app.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-01-27 14:09:40 +0100
committerAndre Weissflog <floooh@gmail.com>2019-01-27 14:09:40 +0100
commit3af065b496c8880064b5fe0c91d1bc90d669a906 (patch)
tree26249e13fbccd8fc5a79ceef11f1095998089bcc /sokol_app.h
parent9f9821d64a8ae89fa786eb5ac25021f07f8396f8 (diff)
detect debug mode via NDEBUG, not _DEBUG, raise Android log level to INFO
Diffstat (limited to 'sokol_app.h')
-rw-r--r--sokol_app.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sokol_app.h b/sokol_app.h
index 880f5735..dcd21749 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -654,7 +654,7 @@ SOKOL_API_DECL const void* sapp_win32_get_hwnd(void);
#define SOKOL_API_IMPL
#endif
#ifndef SOKOL_DEBUG
- #ifdef _DEBUG
+ #ifndef NDEBUG
#define SOKOL_DEBUG (1)
#endif
#endif
@@ -675,7 +675,7 @@ SOKOL_API_DECL const void* sapp_win32_get_hwnd(void);
#ifdef SOKOL_DEBUG
#if defined(__ANDROID__)
#include <android/log.h>
- #define SOKOL_LOG(s) { SOKOL_ASSERT(s); __android_log_write(ANDROID_LOG_DEBUG, "SOKOL_APP", s); }
+ #define SOKOL_LOG(s) { SOKOL_ASSERT(s); __android_log_write(ANDROID_LOG_INFO, "SOKOL_APP", s); }
#else
#include <stdio.h>
#define SOKOL_LOG(s) { SOKOL_ASSERT(s); puts(s); }