mcst-linux-kernel/patches-2024.06.26/gl4es-1.1.4/0250-debug-pring.patch

21 lines
890 B
Diff

--- a/src/gl/logs.h 2024-04-11 14:56:53.108795910 +0000
+++ b/src/gl/logs.h 2024-04-11 14:55:38.747330148 +0000
@@ -13,13 +13,15 @@
#define SHUT_LOGD(...)
#define SHUT_LOGD_NOPREFIX(...)
#define SHUT_LOGE(...)
+ #define LOGD(...)
+ #define LOGE(...)
#else
#define SHUT_LOGD(...) if(!globals4es.nobanner) LogPrintf(__VA_ARGS__)
#define SHUT_LOGD_NOPREFIX(...) if(!globals4es.nobanner) LogPrintf_NoPrefix(__VA_ARGS__)
#define SHUT_LOGE(...) if(!globals4es.nobanner) LogFPrintf(stderr,__VA_ARGS__)
+ #define LOGD(...) LogPrintf(__VA_ARGS__)
+ #define LOGE(...) LogFPrintf(stderr,__VA_ARGS__)
#endif
//----------------------------------------------------------------------------
-#define LOGD(...) LogPrintf(__VA_ARGS__)
-#define LOGE(...) LogFPrintf(stderr,__VA_ARGS__)
//----------------------------------------------------------------------------
#endif // _GL4ES_LOGS_H_