commit 637a88f

Louis Brauer  ·  2024-05-27 14:23:11 +0000 UTC
parent 4621a25
Use ISO C99 __func__ instead of GNU __FUNCTION__
1 files changed,  +1, -1
M xs.h
M xs.h
+1, -1
1@@ -52,7 +52,7 @@ typedef char xs_data;
2 
3 void *xs_free(void *ptr);
4 void *_xs_realloc(void *ptr, size_t size, const char *file, int line, const char *func);
5-#define xs_realloc(ptr, size) _xs_realloc(ptr, size, __FILE__, __LINE__, __FUNCTION__)
6+#define xs_realloc(ptr, size) _xs_realloc(ptr, size, __FILE__, __LINE__, __func__)
7 int _xs_blk_size(int sz);
8 void _xs_destroy(char **var);
9 #define xs_debug() raise(SIGTRAP)