mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2025-01-13 13:40:54 +00:00
[IMPROVEMENT] Add noreturn attribute to fatal (#1179)
* Set no return * Add MSVC
This commit is contained in:
parent
a919ef4410
commit
60773bb859
@ -250,6 +250,11 @@ int myth_loop(struct lib_ccx_ctx *ctx);
|
||||
int matroska_loop(struct lib_ccx_ctx *ctx);
|
||||
|
||||
// utility.c
|
||||
#if defined(__GNUC__)
|
||||
__attribute__ ((noreturn))
|
||||
#elif defined(_MSC_VER)
|
||||
__declspec(noreturn)
|
||||
#endif
|
||||
void fatal(int exit_code, const char *fmt, ...);
|
||||
void mprint (const char *fmt, ...);
|
||||
void sleep_secs (int secs);
|
||||
|
Loading…
Reference in New Issue
Block a user