mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-06-26 00:29:27 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (LIKELY(!do_logging)) {
|
if (UNLIKELY(!do_logging)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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)) { \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user