Fix building with XE_OPTION_ENABLE_LOGGING off

This commit is contained in:
Silent 2020-08-08 20:58:04 +02:00 committed by Rick Gibbed
parent 9418f3f2c5
commit 72e41e2bf8
1 changed files with 11 additions and 13 deletions

View File

@ -121,21 +121,19 @@ void XELOGFS(const char* format, const Args&... args) {
#else #else
#define XELOGDUMMY \ #define __XELOGDUMMY \
do { \ do { \
} while (false) } while (false)
#define XELOGE(...) XELOGDUMMY #define XELOGE(...) __XELOGDUMMY
#define XELOGW(...) XELOGDUMMY #define XELOGW(...) __XELOGDUMMY
#define XELOGI(...) XELOGDUMMY #define XELOGI(...) __XELOGDUMMY
#define XELOGD(...) XELOGDUMMY #define XELOGD(...) __XELOGDUMMY
#define XELOGCPU(...) XELOGDUMMY #define XELOGCPU(...) __XELOGDUMMY
#define XELOGAPU(...) XELOGDUMMY #define XELOGAPU(...) __XELOGDUMMY
#define XELOGGPU(...) XELOGDUMMY #define XELOGGPU(...) __XELOGDUMMY
#define XELOGKERNEL(...) XELOGDUMMY #define XELOGKERNEL(...) __XELOGDUMMY
#define XELOGFS(...) XELOGDUMMY #define XELOGFS(...) __XELOGDUMMY
#undef XELOGDUMMY
#endif // ENABLE_LOGGING #endif // ENABLE_LOGGING