From 75a2b8f4897f53ee7c5580af2192567a7f003ce0 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 11 Mar 2021 21:15:49 -0600 Subject: [PATCH] [ox/std] Add option to give oxTrace a msg arg --- deps/ox/src/ox/std/trace.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/ox/src/ox/std/trace.hpp b/deps/ox/src/ox/std/trace.hpp index 25859263..de107700 100644 --- a/deps/ox/src/ox/std/trace.hpp +++ b/deps/ox/src/ox/std/trace.hpp @@ -166,7 +166,7 @@ void init(); #define oxLogError(err) ox::trace::logError(__FILE__, __LINE__, err) -#define oxTrace(ch) ox::trace::TraceStream(__FILE__, __LINE__, ch) +#define oxTrace(...) ox::trace::TraceStream(__FILE__, __LINE__, __VA_ARGS__) #ifdef OX_USE_STDLIB // Non-GCC compilers don't like ##__VA_ARGS__, so use initializer list, which relies on std lib @@ -175,5 +175,5 @@ void init(); #define oxTracef(ch, fmt, ...) ox::trace::TraceStream(__FILE__, __LINE__, ch, ox::detail::fmtSegments(fmt), ##__VA_ARGS__) #endif -#define oxDebug() oxTrace("debug") +#define oxDebug(...) oxTrace("debug", __VA_ARGS__) #define oxDebugf(...) oxTracef("debug", __VA_ARGS__)