From 6058be1c07acfb33ee161e78f5755d2af13573c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Mon, 14 Oct 2013 18:03:17 +0200 Subject: [PATCH] Fix UC_STATIC_ASSERT --- include/ucore/utils.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/ucore/utils.h b/include/ucore/utils.h index 0720b46..cc1b0cf 100644 --- a/include/ucore/utils.h +++ b/include/ucore/utils.h @@ -9,9 +9,7 @@ //Gnerate a compiler error if the compile time //constant expression fails #define UC_STATIC_ASSERT(expr) \ - do { \ - enum { assert_static__ = 1/(expr) }; \ - } while (0) + enum { assert_static__ = 1/(expr) }; #ifdef DEBUG #define TRACEF(fmt, ...)\