diff options
author | Hugo Beauzée-Luyssen <hugo@videolan.org> | 2018-09-20 14:57:09 +0300 |
---|---|---|
committer | Hugo Beauzée-Luyssen <hugo@videolan.org> | 2018-09-25 12:34:42 +0300 |
commit | 3ad41348d203759dac2ad531de8ff1e55b6454c9 (patch) | |
tree | 625ddfe4e342e5db2976bb64460d5cbd4d16917b /include | |
parent | c71416582715945623f60f712260de168c878978 (diff) |
validate: Don't name variadic macro parameters
As it is forbidden by ISO C
Diffstat (limited to 'include')
-rw-r--r-- | include/common/validate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/common/validate.h b/include/common/validate.h index 310266d..32370eb 100644 --- a/include/common/validate.h +++ b/include/common/validate.h @@ -37,11 +37,11 @@ #define debug_abort abort #endif -#define validate_input_or_ret_with_msg(x, r, msg...) \ +#define validate_input_or_ret_with_msg(x, r, ...) \ if (!(x)) { \ fprintf(stderr, "Input validation check \'%s\' failed in %s!\n", \ #x, __PRETTY_FUNCTION__); \ - fprintf(stderr, msg); \ + fprintf(stderr, __VA_ARGS__); \ debug_abort(); \ return r; \ } |