mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2024-12-24 00:51:59 +01:00
Override abort() with OSFatal and bump WUPS version to 0.7.1
This commit is contained in:
parent
ac47ebc84e
commit
21d5951ef0
@ -28,19 +28,32 @@
|
||||
#include "common.h"
|
||||
#include "hooks.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define __EXTERN_C_MACRO extern "C"
|
||||
#else
|
||||
#define __EXTERN_C_MACRO
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define WUPS_PLUGIN_NAME(x) \
|
||||
WUPS_META(name, x); \
|
||||
WUPS_META(wups, "0.7.0"); \
|
||||
WUPS_META(wups, "0.7.1"); \
|
||||
WUPS_USE_WUT_MALLOC(); \
|
||||
WUPS_USE_WUT_SOCKETS(); \
|
||||
WUPS_USE_WUT_NEWLIB(); \
|
||||
WUPS_USE_WUT_STDCPP(); \
|
||||
WUPS___INIT_WRAPPER(); \
|
||||
WUPS___FINI_WRAPPER(); \
|
||||
__EXTERN_C_MACRO void abort(); \
|
||||
__EXTERN_C_MACRO void OSFatal(const char *msg); \
|
||||
void abort() { \
|
||||
OSFatal(x ": abort() called. Uncaught exception?"); \
|
||||
while (1) \
|
||||
; \
|
||||
} \
|
||||
WUPS_META(buildtimestamp, __DATE__ " " __TIME__);
|
||||
|
||||
#define WUPS_PLUGIN_AUTHOR(x) WUPS_META(author, x)
|
||||
|
Loading…
Reference in New Issue
Block a user