mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 09:39:15 +00:00
add noreturn attribute to def_crash_handler
This commit is contained in:
parent
26397c7782
commit
3b3d612ceb
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue