diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-06-19 19:03:11 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-06-19 19:03:11 -0400 |
| commit | efc33c5fc400aad29d8483411804ca8a3588997d (patch) | |
| tree | ee3e250bc314d1d2364ec05f791a4a0d9227b7d2 /include/JSystem/JUtility | |
| parent | b295d48d1d9e6219224f826684675c3fba954c0b (diff) | |
Various inline cleanup
Diffstat (limited to 'include/JSystem/JUtility')
| -rw-r--r-- | include/JSystem/JUtility/JUTAssert.h | 4 |
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__); \ |
