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
#define XELOGDUMMY \
do { \
#define __XELOGDUMMY \
do { \
} while (false)
#define XELOGE(...) XELOGDUMMY
#define XELOGW(...) XELOGDUMMY
#define XELOGI(...) XELOGDUMMY
#define XELOGD(...) XELOGDUMMY
#define XELOGCPU(...) XELOGDUMMY
#define XELOGAPU(...) XELOGDUMMY
#define XELOGGPU(...) XELOGDUMMY
#define XELOGKERNEL(...) XELOGDUMMY
#define XELOGFS(...) XELOGDUMMY
#undef XELOGDUMMY
#define XELOGE(...) __XELOGDUMMY
#define XELOGW(...) __XELOGDUMMY
#define XELOGI(...) __XELOGDUMMY
#define XELOGD(...) __XELOGDUMMY
#define XELOGCPU(...) __XELOGDUMMY
#define XELOGAPU(...) __XELOGDUMMY
#define XELOGGPU(...) __XELOGDUMMY
#define XELOGKERNEL(...) __XELOGDUMMY
#define XELOGFS(...) __XELOGDUMMY
#endif // ENABLE_LOGGING