Mark OSPanic and OSFatal as [[noreturn]]

Enables them to avoid "method isn't returning a value" errors
This commit is contained in:
PJB3005
2026-02-25 21:27:02 +01:00
parent 39981e4a65
commit b34ba7b4f0
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -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, ...);
+6
View File
@@ -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