mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-08 03:47:15 -04:00
37 lines
819 B
C++
37 lines
819 B
C++
//=======================================================================
|
|
// Copyright Baptiste Wicht 2013-2018.
|
|
// Distributed under the terms of the MIT License.
|
|
// (See accompanying file LICENSE or copy at
|
|
// http://www.opensource.org/licenses/MIT)
|
|
//=======================================================================
|
|
|
|
#ifndef THOR_H
|
|
#define THOR_H
|
|
|
|
#include <types.hpp>
|
|
|
|
void* operator new(uint64_t size);
|
|
void operator delete(void* p);
|
|
|
|
void* operator new[](uint64_t size);
|
|
void operator delete[](void* p);
|
|
|
|
#define ATEXIT_MAX_FUNCS 32
|
|
|
|
extern "C" {
|
|
|
|
typedef int uarch_t;
|
|
|
|
struct atexit_func_entry_t {
|
|
void (*destructor_func)(void *);
|
|
void *obj_ptr;
|
|
void *dso_handle;
|
|
};
|
|
|
|
int __cxa_atexit(void (*f)(void *), void *objptr, void *dso);
|
|
void __cxa_finalize(void *f);
|
|
|
|
} // end of extern "C"
|
|
|
|
#endif
|