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;
}
if (LIKELY(!do_logging)) {
if (UNLIKELY(!do_logging)) {
return;
}

View File

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