mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-24 18:31:51 +00:00
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:
parent
788c6cb172
commit
2878c5adde
@ -100,7 +100,7 @@ void log_outputString(const char * const str) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (LIKELY(!do_logging)) {
|
||||
if (UNLIKELY(!do_logging)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -105,13 +105,9 @@ void log_outputString(const char * const str);
|
||||
# undef assert
|
||||
# define assert(e)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
# define LOG(...)
|
||||
# define GL_MAYBELOG(...)
|
||||
|
||||
#else
|
||||
|
||||
# define LOG(...) \
|
||||
#define LOG(...) \
|
||||
if (LIKELY(do_logging)) { \
|
||||
GLenum _glerr = safeGLGetError(); \
|
||||
_LOG(__VA_ARGS__); \
|
||||
@ -128,7 +124,6 @@ void log_outputString(const char * const str);
|
||||
_LOG(__VA_ARGS__); \
|
||||
} \
|
||||
} //
|
||||
#endif
|
||||
|
||||
#define RELEASE_LOG(...) \
|
||||
if (LIKELY(do_logging)) { \
|
||||
|
Loading…
Reference in New Issue
Block a user