From d86f60413e38088269f03b3278e802b0f3dd1f31 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 21 Dec 2021 13:55:55 +1000 Subject: [PATCH] debug/warn: add forgotten 'do' --- debug/warn.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug/warn.hpp b/debug/warn.hpp index ed45f4ca..439bf96a 100644 --- a/debug/warn.hpp +++ b/debug/warn.hpp @@ -25,7 +25,7 @@ } while (0) -#define RETURN_FALSE_UNLESS(CONDITION) { \ +#define RETURN_FALSE_UNLESS(CONDITION) do { \ if (const auto &__return_false_unless = (CONDITION); !__return_false_unless) { \ if constexpr (debug_enabled) { \ std::cerr << __FILE__ << ':' \