diff options
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/LibC++/base_process.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dev/LibC++/base_process.h b/dev/LibC++/base_process.h index 77e092e..a30ccca 100644 --- a/dev/LibC++/base_process.h +++ b/dev/LibC++/base_process.h @@ -24,6 +24,7 @@ inline int signal(int code) { return -1; } +extern "C" void (*__atexit__cdecl_ptr)(void); extern "C" void (**__atexit_lst_ptr)(void); extern "C" size_t __atexit_lst_cnt; @@ -32,6 +33,8 @@ inline int exit(int code) { __atexit_lst_ptr[idx](); } + if (__atexit__cdecl_ptr) __atexit__cdecl_ptr(); + exit_(code); return -1; } |
