diff options
| author | Andre Weissflog <floooh@gmail.com> | 2019-01-27 14:09:40 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2019-01-27 14:09:40 +0100 |
| commit | 3af065b496c8880064b5fe0c91d1bc90d669a906 (patch) | |
| tree | 26249e13fbccd8fc5a79ceef11f1095998089bcc | |
| parent | 9f9821d64a8ae89fa786eb5ac25021f07f8396f8 (diff) | |
detect debug mode via NDEBUG, not _DEBUG, raise Android log level to INFO
| -rw-r--r-- | sokol_app.h | 4 | ||||
| -rw-r--r-- | sokol_args.h | 2 | ||||
| -rw-r--r-- | sokol_audio.h | 2 | ||||
| -rw-r--r-- | sokol_gfx.h | 2 |
4 files changed, 5 insertions, 5 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); } diff --git a/sokol_args.h b/sokol_args.h index 89f8517c..764c0283 100644 --- a/sokol_args.h +++ b/sokol_args.h @@ -291,7 +291,7 @@ SOKOL_API_DECL const char* sargs_value_at(int index); #define SOKOL_API_IMPL #endif #ifndef SOKOL_DEBUG - #ifdef _DEBUG + #ifndef NDEBUG #define SOKOL_DEBUG (1) #endif #endif diff --git a/sokol_audio.h b/sokol_audio.h index 6c798820..615ec59c 100644 --- a/sokol_audio.h +++ b/sokol_audio.h @@ -388,7 +388,7 @@ SOKOL_API_DECL int saudio_push(const float* frames, int num_frames); #define SOKOL_API_IMPL #endif #ifndef SOKOL_DEBUG - #ifdef _DEBUG + #ifndef NDEBUG #define SOKOL_DEBUG (1) #endif #endif diff --git a/sokol_gfx.h b/sokol_gfx.h index 5099dd00..605b730c 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -1648,7 +1648,7 @@ SOKOL_API_DECL void sg_apply_uniform_block(sg_shader_stage stage, int ub_index, #define SOKOL_API_IMPL #endif #ifndef SOKOL_DEBUG - #ifdef _DEBUG + #ifndef NDEBUG #define SOKOL_DEBUG (1) #endif #endif |