ref: ac6c286860faadf501ef44bb0c0f76a27d299b53
parent: 3ad41348d203759dac2ad531de8ff1e55b6454c9
author: Hugo Beauzée-Luyssen <[email protected]>
date: Thu Sep 20 09:57:37 EDT 2018
validate: Don't use __PRETTY_FUNCTION__ It is not valid in ISO C and doesn't differ from __func__
--- a/include/common/validate.h
+++ b/include/common/validate.h
@@ -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; \
}