diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-12-07 15:53:05 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-12-07 15:53:05 +0100 |
commit | 66502051a113944aa3e659697b5d905d269adabb (patch) | |
tree | 07d3ef0cedc4cdef17fa358dd92bdbafc684f214 /src/libmdsserver | |
parent | whitespace (diff) | |
download | mds-66502051a113944aa3e659697b5d905d269adabb.tar.gz mds-66502051a113944aa3e659697b5d905d269adabb.tar.bz2 mds-66502051a113944aa3e659697b5d905d269adabb.tar.xz |
fail_if supports sequences without being double bracketed
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/libmdsserver/macros.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 /** |