mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-27 06:10:06 +08:00
tcc_internal_error: print function with __func__.
Though __func__ was introduced in C99, this is preferable to __FUNCTION__, an obsolete GCC extension. Found with gcc -Wpedantic.
This commit is contained in:
parent
558c6f56e2
commit
53587ee415
2
tcc.h
2
tcc.h
@ -1238,7 +1238,7 @@ PUB_FUNC void _tcc_error_noabort(const char *fmt, ...) PRINTF_LIKE(1,2);
|
||||
PUB_FUNC NORETURN void _tcc_error(const char *fmt, ...) PRINTF_LIKE(1,2);
|
||||
PUB_FUNC void _tcc_warning(const char *fmt, ...) PRINTF_LIKE(1,2);
|
||||
#define tcc_internal_error(msg) tcc_error("internal compiler error\n"\
|
||||
"%s:%d: in %s(): " msg, __FILE__,__LINE__,__FUNCTION__)
|
||||
"%s:%d: in %s(): " msg, __FILE__,__LINE__,__func__)
|
||||
|
||||
/* other utilities */
|
||||
ST_FUNC void dynarray_add(void *ptab, int *nb_ptr, void *data);
|
||||
|
Loading…
Reference in New Issue
Block a user