More explicitly enable assert() in Droid release builds

This commit is contained in:
Aaron Culliney 2018-04-07 11:16:40 -07:00
parent 3318d159b5
commit 6ed0100291

View File

@ -88,6 +88,15 @@ void log_outputString(const char * const str);
} while (0)
#endif
#if defined(NDEBUG)
# if defined(__ANDROID__)
// HACK NOTE : keep assertions in Android release code to get better introspection into potential crashes
# else
# undef assert
# define assert(e)
# endif
#endif
#define LOG(...) \
if (LIKELY(do_logging)) { \
GLenum _glerr = safeGLGetError(); \