Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Beauzée-Luyssen <hugo@videolan.org>2018-09-20 14:57:37 +0300
committerHugo Beauzée-Luyssen <hugo@videolan.org>2018-09-25 12:34:42 +0300
commitac6c286860faadf501ef44bb0c0f76a27d299b53 (patch)
tree6aadfdc69808b0abafe92b6aa6464dfc5bf8fc08 /include
parent3ad41348d203759dac2ad531de8ff1e55b6454c9 (diff)
validate: Don't use __PRETTY_FUNCTION__
It is not valid in ISO C and doesn't differ from __func__
Diffstat (limited to 'include')
-rw-r--r--include/common/validate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/common/validate.h b/include/common/validate.h
index 32370eb..9114740 100644
--- 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; \
}