mirror of
https://github.com/wiiu-env/WiiUModuleSystem.git
synced 2025-02-16 16:19:14 +01:00
Override abort with a simple OSFatal call
This commit is contained in:
parent
4ab8bccd5e
commit
6dd8a36427
@ -27,6 +27,13 @@
|
||||
|
||||
#include "common.h"
|
||||
#include "hooks.h"
|
||||
#include <coreinit/debug.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define __EXTERN_C_MACRO extern "C"
|
||||
#else
|
||||
#define __EXTERN_C_MACRO
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -41,6 +48,12 @@ extern "C" {
|
||||
WUMS_USE_WUT_STDCPP(); \
|
||||
WUMS___INIT_WRAPPER(); \
|
||||
WUMS___FINI_WRAPPER(); \
|
||||
__EXTERN_C_MACRO void abort(); \
|
||||
void abort() { \
|
||||
OSFatal(x ": abort() called. Uncaught exception?"); \
|
||||
while (1) \
|
||||
; \
|
||||
} \
|
||||
WUMS_META(buildtimestamp, __DATE__ " " __TIME__)
|
||||
|
||||
#define WUMS_MODULE_AUTHOR(x) WUMS_META(author, x)
|
||||
|
Loading…
x
Reference in New Issue
Block a user