From 4a6a5421113ab662a665c62ed6a24b61a5a36950 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 23 Sep 2011 08:47:53 +0200 Subject: Multiline macro cleanup This is mostly a cosmetic patch. The purpose of wrapping a multi-line macro in a do { } while(0) is to make the macro usable as a regular statement, not a compound statement. When the while(0) is terminated with a semicolon, the do { } while(0); block becomes a compound statement again. --- src/util/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util/util.h') diff --git a/src/util/util.h b/src/util/util.h index 118d70c52..6cc8a546c 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -139,7 +139,7 @@ errno_t set_debug_file_from_fd(const int fd); } \ debug_fn body; \ } \ -} while(0); +} while(0) /** \def DEBUG_MSG(level, function, message) \brief macro to generate debug messages with message from variable @@ -180,7 +180,7 @@ errno_t set_debug_file_from_fd(const int fd); debug_prg_name, function, __debug_macro_newlevel, message); \ } \ } \ -} while(0); +} while(0) /** \def DEBUG_IS_SET(level) \brief checks whether level (must be in new format) is set in debug_level -- cgit