提交 3b3d612c 编写于 作者: P Palana

add noreturn attribute to def_crash_handler

上级 26397c77
......@@ -58,7 +58,13 @@ static void def_log_handler(enum log_type type, const char *format,
}
}
static void def_crash_handler(const char *format, va_list args)
#ifdef _MSC_VER
#define NORETURN __declspec(noreturn)
#else
#define NORETURN __attribute__((noreturn))
#endif
NORETURN static void def_crash_handler(const char *format, va_list args)
{
vfprintf(stderr, format, args);
exit(0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册