From: Alan T. DeKok Date: Wed, 23 Oct 2019 16:54:30 +0000 (-0400) Subject: add do / while wrapper so that the caller uses ';' to end lines X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c8a00c1afc0d425be365be1adfeadb5a3e19bec;p=thirdparty%2Ffreeradius-server.git add do / while wrapper so that the caller uses ';' to end lines --- diff --git a/src/lib/util/debug.h b/src/lib/util/debug.h index 5a489f31bf5..69eca6d65d4 100644 --- a/src/lib/util/debug.h +++ b/src/lib/util/debug.h @@ -29,7 +29,7 @@ extern "C" { #include #include -#define MEM(x) if (!(x)) { ERROR("%s[%u] OUT OF MEMORY", __FILE__, __LINE__); _fr_exit_now(__FILE__, __LINE__, EXIT_FAILURE); } +#define MEM(x) do { if (!(x)) { ERROR("%s[%u] OUT OF MEMORY", __FILE__, __LINE__); _fr_exit_now(__FILE__, __LINE__, EXIT_FAILURE); } } while (0) typedef enum { DEBUGGER_STATE_UNKNOWN_NO_PTRACE = -3, //!< We don't have ptrace so can't check.