mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2024-12-24 17:11:58 +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 "common.h"
|
||||||
#include "hooks.h"
|
#include "hooks.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 WUPS_PLUGIN_NAME(x) \
|
#define WUPS_PLUGIN_NAME(x) \
|
||||||
WUPS_META(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_MALLOC(); \
|
||||||
WUPS_USE_WUT_SOCKETS(); \
|
WUPS_USE_WUT_SOCKETS(); \
|
||||||
WUPS_USE_WUT_NEWLIB(); \
|
WUPS_USE_WUT_NEWLIB(); \
|
||||||
WUPS_USE_WUT_STDCPP(); \
|
WUPS_USE_WUT_STDCPP(); \
|
||||||
WUPS___INIT_WRAPPER(); \
|
WUPS___INIT_WRAPPER(); \
|
||||||
WUPS___FINI_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__);
|
WUPS_META(buildtimestamp, __DATE__ " " __TIME__);
|
||||||
|
|
||||||
#define WUPS_PLUGIN_AUTHOR(x) WUPS_META(author, x)
|
#define WUPS_PLUGIN_AUTHOR(x) WUPS_META(author, x)
|
||||||
|
Loading…
Reference in New Issue
Block a user