diff options
author | geni <me@geni.site> | 2021-12-31 14:44:15 +0200 |
---|---|---|
committer | geni <me@geni.site> | 2021-12-31 14:44:15 +0200 |
commit | 32b1257cd62ee6ec7f1087355a2d9e181429d165 (patch) | |
tree | 74041a1d0f8f1a32863a9f4bdab7444183e00bd7 /NorthstarDedicatedTest/memalloc.h | |
parent | 24e6b264919b9125a4f78991dc0f42fc7797cbf2 (diff) | |
download | NorthstarLauncher-32b1257cd62ee6ec7f1087355a2d9e181429d165.tar.gz NorthstarLauncher-32b1257cd62ee6ec7f1087355a2d9e181429d165.zip |
Remove linear allocator
Diffstat (limited to 'NorthstarDedicatedTest/memalloc.h')
-rw-r--r-- | NorthstarDedicatedTest/memalloc.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/NorthstarDedicatedTest/memalloc.h b/NorthstarDedicatedTest/memalloc.h index d9277694..86d2ff58 100644 --- a/NorthstarDedicatedTest/memalloc.h +++ b/NorthstarDedicatedTest/memalloc.h @@ -3,16 +3,16 @@ #include "include/rapidjson/document.h" //#include "include/rapidjson/allocators.h" -extern size_t g_iStaticAllocated; - -extern "C" { - char* _strdup_base(const char* src); -} +extern "C" void* _malloc_base(size_t size); +extern "C" void* _calloc_base(size_t const count, size_t const size); +extern "C" void* _realloc_base(void* block, size_t size); +extern "C" void* _recalloc_base(void* const block, size_t const count, size_t const size); +extern "C" void _free_base(void* const block); +extern "C" char* _strdup_base(const char* src); void* operator new(size_t n); void operator delete(void* p); -void* _malloc_base(size_t n); //void* malloc(size_t n); class SourceAllocator { |