mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-08 11:47:03 -04:00
Mark OSPanic and OSFatal as [[noreturn]]
Enables them to avoid "method isn't returning a value" errors
This commit is contained in:
@@ -209,8 +209,8 @@ void OSSetSoundMode(u32 mode);
|
||||
|
||||
DECL_WEAK void OSReport(const char* msg, ...);
|
||||
DECL_WEAK void OSVReport(const char* msg, va_list list);
|
||||
DECL_WEAK void OSPanic(const char* file, int line, const char* msg, ...);
|
||||
void OSFatal(GXColor fg, GXColor bg, const char* msg);
|
||||
DECL_WEAK void OSPanic NORETURN(const char* file, int line, const char* msg, ...);
|
||||
void OSFatal NORETURN(GXColor fg, GXColor bg, const char* msg);
|
||||
|
||||
// do these belong here?
|
||||
DECL_WEAK void OSAttention(const char* msg, ...);
|
||||
|
||||
@@ -106,5 +106,11 @@ typedef unsigned int uint;
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
|
||||
#if TARGET_PC && __cplusplus
|
||||
#define NORETURN [[noreturn]]
|
||||
#else
|
||||
#define NORETURN
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user