Only call __init_wut_stdcpp when it exists

This commit is contained in:
Maschell 2020-05-03 11:17:29 +02:00
parent 96040c75ab
commit f5398ee2e0

View File

@ -202,7 +202,9 @@ typedef struct wups_loader_app_started_args_t {
#define WUPS_USE_WUT_STDCPP() \
extern "C" void __init_wut_stdcpp() __attribute__((weak)); \
void on_init_wut_stdcpp(){ \
if (__init_wut_stdcpp) { \
__init_wut_stdcpp(); \
} \
}\
WUPS_HOOK_EX(WUPS_LOADER_HOOK_INIT_WUT_STDCPP,on_init_wut_stdcpp); \
extern "C" void __fini_wut_stdcpp() __attribute__((weak)); \