Commit ac6c2868 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

validate: Don't use __PRETTY_FUNCTION__

It is not valid in ISO C and doesn't differ from __func__
parent 3ad41348
......@@ -40,7 +40,7 @@
#define validate_input_or_ret_with_msg(x, r, ...) \
if (!(x)) { \
fprintf(stderr, "Input validation check \'%s\' failed in %s!\n", \
#x, __PRETTY_FUNCTION__); \
#x, __func__); \
fprintf(stderr, __VA_ARGS__); \
debug_abort(); \
return r; \
......@@ -49,7 +49,7 @@
#define validate_input_or_ret(x, r) \
if (!(x)) { \
fprintf(stderr, "Input validation check \'%s\' failed in %s!\n", \
#x, __PRETTY_FUNCTION__); \
#x, __func__); \
debug_abort(); \
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