diff --git a/Bigfoot/Sources/Utils/Include/Utils/Log/LogMacros.hpp b/Bigfoot/Sources/Utils/Include/Utils/Log/LogMacros.hpp index b26df0d..ba8eb39 100644 --- a/Bigfoot/Sources/Utils/Include/Utils/Log/LogMacros.hpp +++ b/Bigfoot/Sources/Utils/Include/Utils/Log/LogMacros.hpp @@ -102,6 +102,7 @@ #define BIGFOOT_LOG_FATAL(loggerName, fmt, ...) #endif +#if defined BIGFOOT_NOT_OPTIMIZED #define BIGFOOT_LOG_DEBUG_IF(condition, loggerName, fmt, ...) \ do \ { \ @@ -155,4 +156,12 @@ BIGFOOT_LOG_FATAL(loggerName, fmt __VA_OPT__(, ) __VA_ARGS__); \ } \ } while (0) +#else +#define BIGFOOT_LOG_DEBUG_IF(condition, loggerName, fmt, ...) +#define BIGFOOT_LOG_TRACE_IF(condition, loggerName, fmt, ...) +#define BIGFOOT_LOG_INFO_IF(condition, loggerName, fmt, ...) +#define BIGFOOT_LOG_WARN_IF(condition, loggerName, fmt, ...) +#define BIGFOOT_LOG_ERROR_IF(condition, loggerName, fmt, ...) +#define BIGFOOT_LOG_FATAL_IF(condition, loggerName, fmt, ...) +#endif #endif