From 4c6d61bed163130fcc4509ffb176bf39afb5ec4d Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 25 Apr 2020 22:59:45 +0200 Subject: [PATCH] Fixed 'at most one statement is allowed per line' for tl_assert macro --- src/tl/tl/tlAssert.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tl/tl/tlAssert.h b/src/tl/tl/tlAssert.h index 7009e520a..ed0ad085f 100644 --- a/src/tl/tl/tlAssert.h +++ b/src/tl/tl/tlAssert.h @@ -38,7 +38,9 @@ namespace tl TL_PUBLIC NO_RETURN void assertion_failed (const char *filename, unsigned int line, const char *condition); // the throw int(0) instruction will tell the compiler that the assertion will not return -#define tl_assert(COND) if (!(COND)) { tl::assertion_failed (__FILE__, __LINE__, #COND); } +#define tl_assert(COND) if (!(COND)) { \ + tl::assertion_failed (__FILE__, __LINE__, #COND); \ +} } // namespace tl