diff --git a/source/mijin/debug/assert.hpp b/source/mijin/debug/assert.hpp index efc5263..a422398 100644 --- a/source/mijin/debug/assert.hpp +++ b/source/mijin/debug/assert.hpp @@ -45,7 +45,7 @@ namespace mijin #if MIJIN_DEBUG -#define MIJIN_RAISE_ERROR(msg, source_loc) \ +#define MIJIN_RAISE_ERROR(msg, source_loc) \ switch (mijin::handleError(msg, source_loc)) \ { \ case mijin::ErrorHandling::CONTINUE: \ @@ -99,10 +99,10 @@ if (!static_cast(condition)) \ MIJIN_FATAL("Debug assertion failed: " #condition "\nMessage: " msg); \ } #else // MIJIN_DEBUG -#define MIJIN_ERROR(...) +#define MIJIN_ERROR(...) ((void)0) #define MIJIN_FATAL(...) std::abort() -#define MIJIN_ASSERT(...) -#define MIJIN_ASSERT_FATAL(...) +#define MIJIN_ASSERT(...) ((void)0) +#define MIJIN_ASSERT_FATAL(...) ((void)0) #endif // !MIJIN_DEBUG //