Commit 3ad41348 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

validate: Don't name variadic macro parameters

As it is forbidden by ISO C
parent c7141658
...@@ -37,11 +37,11 @@ ...@@ -37,11 +37,11 @@
#define debug_abort abort #define debug_abort abort
#endif #endif
#define validate_input_or_ret_with_msg(x, r, msg...) \ #define validate_input_or_ret_with_msg(x, r, ...) \
if (!(x)) { \ if (!(x)) { \
fprintf(stderr, "Input validation check \'%s\' failed in %s!\n", \ fprintf(stderr, "Input validation check \'%s\' failed in %s!\n", \
#x, __PRETTY_FUNCTION__); \ #x, __PRETTY_FUNCTION__); \
fprintf(stderr, msg); \ fprintf(stderr, __VA_ARGS__); \
debug_abort(); \ debug_abort(); \
return r; \ return r; \
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment