Partial Revert "Fastpath no-logging, don't do normal logging in release but provide a means to RELEASE_LOG()"

- Logging to file may still be useful in release, and we already don't do logging to logcat/stdout
    - TODO: verify no hotpath logging in release ...
This commit is contained in:
Aaron Culliney 2019-06-02 13:11:59 -07:00
parent 788c6cb172
commit 2878c5adde
2 changed files with 3 additions and 8 deletions

View File

@ -100,7 +100,7 @@ void log_outputString(const char * const str) {
return; return;
} }
if (LIKELY(!do_logging)) { if (UNLIKELY(!do_logging)) {
return; return;
} }

View File

@ -105,13 +105,9 @@ void log_outputString(const char * const str);
# undef assert # undef assert
# define assert(e) # define assert(e)
# endif # endif
#endif
# define LOG(...) #define LOG(...) \
# define GL_MAYBELOG(...)
#else
# define LOG(...) \
if (LIKELY(do_logging)) { \ if (LIKELY(do_logging)) { \
GLenum _glerr = safeGLGetError(); \ GLenum _glerr = safeGLGetError(); \
_LOG(__VA_ARGS__); \ _LOG(__VA_ARGS__); \
@ -128,7 +124,6 @@ void log_outputString(const char * const str);
_LOG(__VA_ARGS__); \ _LOG(__VA_ARGS__); \
} \ } \
} // } //
#endif
#define RELEASE_LOG(...) \ #define RELEASE_LOG(...) \
if (LIKELY(do_logging)) { \ if (LIKELY(do_logging)) { \