From 72e41e2bf82dc25ac6b4160e98e627c7e1dabc71 Mon Sep 17 00:00:00 2001 From: Silent Date: Sat, 8 Aug 2020 20:58:04 +0200 Subject: [PATCH] Fix building with XE_OPTION_ENABLE_LOGGING off --- src/xenia/base/logging.h | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/xenia/base/logging.h b/src/xenia/base/logging.h index d9fde04a0..864d5d620 100644 --- a/src/xenia/base/logging.h +++ b/src/xenia/base/logging.h @@ -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