We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dbbd12 commit b7ebce3Copy full SHA for b7ebce3
1 file changed
include/NazaraUtils/Assert.hpp
@@ -10,7 +10,7 @@
10
#include <NazaraUtils/Prerequisites.hpp>
11
#include <NazaraUtils/ConstantEvaluated.hpp>
12
13
-#if !defined(NAZARA_NO_ASSERT) && !defined(NDEBUG)
+#if !defined(NAZARA_NO_ASSERT) && (defined(NAZARA_ENABLE_ASSERTS) || !defined(NDEBUG))
14
#define NazaraAssert(cond) if NAZARA_UNLIKELY(!(cond)) Nz::AssertFailureWithSource(__FILE__, __LINE__, #cond)
15
#define NazaraAssertMsg(cond, ...) if NAZARA_UNLIKELY(!(cond)) Nz::AssertFailureWithSource(__FILE__, __LINE__, __VA_ARGS__)
16
#else
0 commit comments