diff --git a/debug/assert.hpp b/debug/assert.hpp index 260cdabb..a9986a57 100644 --- a/debug/assert.hpp +++ b/debug/assert.hpp @@ -108,6 +108,9 @@ constexpr bool debug_enabled = false; } while (0) +#define WARN_AND_RETURN_IF(COND, VALUE) WARN_RETURN((COND), (VALUE)) + + #define RETURN_UNLESS(VALUE,CONDITION) do { \ if (const auto &__return_unless = (CONDITION); !__return_unless) { \ if constexpr (debug_enabled) { \