summaryrefslogtreecommitdiff
path: root/include/JSystem/JUtility
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-06-19 19:03:11 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2025-06-19 19:03:11 -0400
commitefc33c5fc400aad29d8483411804ca8a3588997d (patch)
treeee3e250bc314d1d2364ec05f791a4a0d9227b7d2 /include/JSystem/JUtility
parentb295d48d1d9e6219224f826684675c3fba954c0b (diff)
Various inline cleanup
Diffstat (limited to 'include/JSystem/JUtility')
-rw-r--r--include/JSystem/JUtility/JUTAssert.h4
1 files changed, 4 insertions, 0 deletions
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__); \