mirror of
https://github.com/wiiu-env/WiiUModuleSystem.git
synced 2026-08-21 07:54:02 -05:00
Fix reent usage for modules
This commit is contained in:
@@ -39,22 +39,28 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define WUMS_MODULE_EXPORT_NAME(x) \
|
||||
WUMS_META(export_name, x); \
|
||||
WUMS_META(wums, "0.3.2"); \
|
||||
WUMS_USE_WUT_MALLOC(); \
|
||||
WUMS_USE_WUT_SOCKETS(); \
|
||||
WUMS_USE_WUT_NEWLIB(); \
|
||||
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_VERSION "0.3.2"
|
||||
|
||||
#define WUMS_MODULE_EXPORT_NAME(__module_name) \
|
||||
WUMS_META(export_name, __module_name); \
|
||||
WUMS_META(wums, WUMS_VERSION); \
|
||||
WUMS_USE_WUT_MALLOC(); \
|
||||
WUMS_USE_WUT_SOCKETS(); \
|
||||
WUMS_USE_WUT_NEWLIB(); \
|
||||
WUMS_USE_WUT_STDCPP(); \
|
||||
WUMS___INIT_WRAPPER(); \
|
||||
WUMS___FINI_WRAPPER(); \
|
||||
__EXTERN_C_MACRO void abort(); \
|
||||
void abort() { \
|
||||
OSFatal(__module_name ": abort() called. Uncaught exception?"); \
|
||||
while (1) \
|
||||
; \
|
||||
} \
|
||||
WUMS_META(buildtimestamp, __DATE__ " " __TIME__); \
|
||||
extern const char wums_meta_info_dump[] WUMS_SECTION("meta"); \
|
||||
const char wums_meta_info_dump[] = "(module: " __module_name ";" \
|
||||
"wums " WUMS_VERSION ";" \
|
||||
"buildtime: " __DATE__ " " __TIME__ ")"
|
||||
|
||||
#define WUMS_MODULE_AUTHOR(x) WUMS_META(author, x)
|
||||
#define WUMS_MODULE_VERSION(x) WUMS_META(version, x)
|
||||
|
||||
Reference in New Issue
Block a user