mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
LibC: Move C++ABI functions to cxxabi.cpp, typecheck cxa_atexit
This commit is contained in:
parent
9d2d97a059
commit
ff590db7e5
4 changed files with 21 additions and 22 deletions
|
@ -40,6 +40,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/internals.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/wait.h>
|
||||
|
@ -197,10 +198,6 @@ __attribute__((warn_unused_result)) int __generate_unique_filename(char* pattern
|
|||
|
||||
extern "C" {
|
||||
|
||||
// Itanium C++ ABI methods defined in crt0.cpp
|
||||
extern int __cxa_atexit(void (*function)(void*), void* paramter, void* dso_handle);
|
||||
extern void __cxa_finalize(void* dso_handle);
|
||||
|
||||
void exit(int status)
|
||||
{
|
||||
__cxa_finalize(nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue