mirror of
https://github.com/wiiu-env/WiiUModuleSystem.git
synced 2024-11-22 09:49:18 +01:00
Override abort with a simple OSFatal call
This commit is contained in:
parent
4ab8bccd5e
commit
6dd8a36427
@ -27,20 +27,33 @@
|
|||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "hooks.h"
|
#include "hooks.h"
|
||||||
|
#include <coreinit/debug.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#define __EXTERN_C_MACRO extern "C"
|
||||||
|
#else
|
||||||
|
#define __EXTERN_C_MACRO
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define WUMS_MODULE_EXPORT_NAME(x) \
|
#define WUMS_MODULE_EXPORT_NAME(x) \
|
||||||
WUMS_META(export_name, x); \
|
WUMS_META(export_name, x); \
|
||||||
WUMS_META(wum, "0.3.1"); \
|
WUMS_META(wum, "0.3.1"); \
|
||||||
WUMS_USE_WUT_MALLOC(); \
|
WUMS_USE_WUT_MALLOC(); \
|
||||||
WUMS_USE_WUT_SOCKETS(); \
|
WUMS_USE_WUT_SOCKETS(); \
|
||||||
WUMS_USE_WUT_NEWLIB(); \
|
WUMS_USE_WUT_NEWLIB(); \
|
||||||
WUMS_USE_WUT_STDCPP(); \
|
WUMS_USE_WUT_STDCPP(); \
|
||||||
WUMS___INIT_WRAPPER(); \
|
WUMS___INIT_WRAPPER(); \
|
||||||
WUMS___FINI_WRAPPER(); \
|
WUMS___FINI_WRAPPER(); \
|
||||||
|
__EXTERN_C_MACRO void abort(); \
|
||||||
|
void abort() { \
|
||||||
|
OSFatal(x ": abort() called. Uncaught exception?"); \
|
||||||
|
while (1) \
|
||||||
|
; \
|
||||||
|
} \
|
||||||
WUMS_META(buildtimestamp, __DATE__ " " __TIME__)
|
WUMS_META(buildtimestamp, __DATE__ " " __TIME__)
|
||||||
|
|
||||||
#define WUMS_MODULE_AUTHOR(x) WUMS_META(author, x)
|
#define WUMS_MODULE_AUTHOR(x) WUMS_META(author, x)
|
||||||
|
Loading…
Reference in New Issue
Block a user