History

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.

John Scott committed 6 years ago

Commit 53587ee1 parent 558c6f51 file · +2 −2Browse files

Unified · Split

tcc.h+2−2
@@ -1061,7 +1061,7 @@ struct filespec { · 1060 unmodified lines
10611061 #define TOK_TWOSHARPS 0xa3 /* ## preprocessing token */
10621062 #define TOK_PLCHLDR 0xa4 /* placeholder token as defined in C99 */
10631063 #define TOK_NOSUBST 0xa5 /* means following token has already been pp'd */
1064−#define TOK_PPJOIN 0xa6 /* A '##' in the right position to mean pasting */
1064+#define TOK_PPJOIN 0xa6 /* A '##' in the right position to mean pasting */
10651065
10661066 /* assignment operators */
10671067 #define TOK_A_ADD 0xb0
@@ -1238,7 +1238,7 @@ PUB_FUNC void _tcc_error_noabort(const char *fmt, ...) PRINTF_LIKE(1,2); · 170 unmodified lines
12381238 PUB_FUNC NORETURN void _tcc_error(const char *fmt, ...) PRINTF_LIKE(1,2);
12391239 PUB_FUNC void _tcc_warning(const char *fmt, ...) PRINTF_LIKE(1,2);
12401240 #define tcc_internal_error(msg) tcc_error("internal compiler error\n"\
1241− "%s:%d: in %s(): " msg, __FILE__,__LINE__,__FUNCTION__)
1241+ "%s:%d: in %s(): " msg, __FILE__,__LINE__,__func__)
12421242
12431243 /* other utilities */
12441244 ST_FUNC void dynarray_add(void *ptab, int *nb_ptr, void *data);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t