fix: 修复 warn 宏调错内部函数

This commit is contained in:
2026-03-14 13:43:27 +08:00
parent 59a6177770
commit 57c0250c44

View File

@@ -84,7 +84,7 @@ void _fatal(int line, const char *function, const char *file,
__attribute__((format(printf, 4, 5)));
#define warn(format, ...) \
_fatal(__LINE__, __FUNCTION__, __FILE__, format, ##__VA_ARGS__)
_warn(__LINE__, __FUNCTION__, __FILE__, format, ##__VA_ARGS__)
void _warn(int line, const char *function, const char *file, const char *format,
...) __attribute__((format(printf, 4, 5)));