diff options
author | Peter Bell <peterbell10@live.co.uk> | 2020-05-15 15:05:43 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-05-16 10:39:05 +0200 |
commit | 89c9a7f563a6f270f8392c160f3954f8e500714b (patch) | |
tree | 952c238ff64a1ff3697918817113f2ebcc05a31e /src | |
parent | Avoid a copy when logging lua strings (diff) | |
download | cuberite-89c9a7f563a6f270f8392c160f3954f8e500714b.tar cuberite-89c9a7f563a6f270f8392c160f3954f8e500714b.tar.gz cuberite-89c9a7f563a6f270f8392c160f3954f8e500714b.tar.bz2 cuberite-89c9a7f563a6f270f8392c160f3954f8e500714b.tar.lz cuberite-89c9a7f563a6f270f8392c160f3954f8e500714b.tar.xz cuberite-89c9a7f563a6f270f8392c160f3954f8e500714b.tar.zst cuberite-89c9a7f563a6f270f8392c160f3954f8e500714b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/LoggerSimple.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LoggerSimple.h b/src/LoggerSimple.h index f8f1ee331..8e51ddedf 100644 --- a/src/LoggerSimple.h +++ b/src/LoggerSimple.h @@ -79,7 +79,7 @@ void LOGERROR(std::string_view a_Format, const Args & ... args) // Macro variants // In debug builds, translate LOGD to LOG, otherwise leave it out altogether: -#ifdef _DEBUG +#if defined(_DEBUG) || defined(TEST_GLOBALS) #define LOGD LOG #else #define LOGD(...) @@ -87,7 +87,7 @@ void LOGERROR(std::string_view a_Format, const Args & ... args) #define LOGWARN LOGWARNING -#ifdef _DEBUG +#if defined(_DEBUG) || defined(TEST_GLOBALS) #define FLOGD FLOG #else #define FLOGD(...) |