From efc33c5fc400aad29d8483411804ca8a3588997d Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Thu, 19 Jun 2025 19:03:11 -0400 Subject: Various inline cleanup --- include/JSystem/JUtility/JUTAssert.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/JSystem/JUtility') diff --git a/include/JSystem/JUtility/JUTAssert.h b/include/JSystem/JUtility/JUTAssert.h index 3c174b19..0c121411 100644 --- a/include/JSystem/JUtility/JUTAssert.h +++ b/include/JSystem/JUtility/JUTAssert.h @@ -18,7 +18,11 @@ } \ } +#ifdef DEBUG +#define J3D_ASSERT(LINE, COND, MSG) JUT_ASSERT_MSG(LINE, (COND) != 0, MSG) +#else #define J3D_ASSERT(LINE, COND, MSG) (void)0 +#endif #define JUT_WARN(LINE, ...) \ JUTAssertion::setWarningMessage_f(JUTAssertion::getSDevice(), __FILE__, LINE, __VA_ARGS__); \ -- cgit v1.2.3