From 66502051a113944aa3e659697b5d905d269adabb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 7 Dec 2014 15:53:05 +0100 Subject: fail_if supports sequences without being double bracketed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libmdsserver/macros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libmdsserver/macros.h') diff --git a/src/libmdsserver/macros.h b/src/libmdsserver/macros.h index 7bd61db..de539a2 100644 --- a/src/libmdsserver/macros.h +++ b/src/libmdsserver/macros.h @@ -381,9 +381,9 @@ /** * Go to the label `pfail` if a condition is met * - * @param condition The condition + * @param ... The condition */ -#define fail_if(condition) if (condition) goto pfail +#define fail_if(...) if (__VA_ARGS__) goto pfail /** -- cgit v1.2.3-70-g09d2