SHARE
TWEET

Untitled

a guest Nov 17th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #define WUPS_USE_WUT_MALLOC() \
  3.     extern "C" void __init_wut_malloc(); \
  4.     void on_init_wut_malloc(){ \
  5.         __init_wut_malloc(); \
  6.     }\
  7.     WUPS_HOOK_EX(WUPS_LOADER_HOOK_INIT_WUT_MALLOC,on_init_wut_malloc); \
  8.     extern "C" void __fini_wut_malloc(); \
  9.     void on_fini_wut_malloc(){ \
  10.         __fini_wut_malloc(); \
  11.     } \
  12.     WUPS_HOOK_EX(WUPS_LOADER_HOOK_FINI_WUT_MALLOC,on_fini_wut_malloc); \
  13.    
  14. #define WUPS_USE_WUT_DEVOPTAB() \
  15.     extern "C" void __init_wut_devoptab(); \
  16.     void on_init_wut_devoptab(){ \
  17.         __init_wut_devoptab(); \
  18.     }\
  19.     WUPS_HOOK_EX(WUPS_LOADER_HOOK_INIT_WUT_DEVOPTAB,on_init_wut_devoptab); \
  20.     extern "C" void __fini_wut_devoptab(); \
  21.     void on_fini_wut_devoptab(){ \
  22.         __fini_wut_devoptab(); \
  23.     }\
  24.     WUPS_HOOK_EX(WUPS_LOADER_HOOK_FINI_WUT_MALLOC,on_fini_wut_devoptab);
  25.    
  26. #define WUPS_USE_WUT_NEWLIB() \
  27.     extern "C" void __init_wut_newlib(); \
  28.     void on_init_wut_newlib(){ \
  29.         __init_wut_newlib(); \
  30.     }\
  31.     WUPS_HOOK_EX(WUPS_LOADER_HOOK_INIT_WUT_NEWLIB,on_init_wut_newlib); \
  32.     extern "C" void __fini_wut_newlib(); \
  33.     void on_fini_wut_newlib(){ \
  34.         __fini_wut_newlib(); \
  35.     }\
  36.     WUPS_HOOK_EX(WUPS_LOADER_HOOK_FINI_WUT_NEWLIB,on_fini_wut_newlib);    
  37.    
  38. #define WUPS_USE_WUT_STDCPP() \
  39.     extern "C" void __init_wut_stdcpp() __attribute__((weak)); \
  40.     void on_init_wut_stdcpp(){ \
  41.         if (__init_wut_stdcpp) { \
  42.             __init_wut_stdcpp(); \
  43.         } \
  44.     }\
  45.     WUPS_HOOK_EX(WUPS_LOADER_HOOK_INIT_WUT_STDCPP,on_init_wut_stdcpp); \
  46.     extern "C" void __fini_wut_stdcpp() __attribute__((weak)); \
  47.     void on_fini_wut_stdcpp(){ \
  48.          if (__fini_wut_stdcpp) { \
  49.             __fini_wut_stdcpp(); \
  50.         } \
  51.     }\
  52.     WUPS_HOOK_EX(WUPS_LOADER_HOOK_FINI_WUT_STDCPP,on_fini_wut_stdcpp);  
  53.  
  54. #define WUPS_USE_WUT_CRT() \
  55.     WUPS_USE_WUT_MALLOC() \
  56.     WUPS_USE_WUT_DEVOPTAB() \
  57.     WUPS_USE_WUT_NEWLIB() \
  58.     WUPS_USE_WUT_STDCPP()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top