diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-05-08 12:32:41 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-05-08 12:32:41 +0200 |
| commit | 09dd11ddf800898c00ecb04a65fb5cd10fb481fa (patch) | |
| tree | eda0b4e23d6a71da7de3a78f0bb76ec3201dd2f9 /Public/Developer/CxxRuntimeLib | |
| parent | ca83108fd138cc0398f900e6a6c0a53ad51aee31 (diff) | |
MHR-23: :boom: changes, reworked project tree.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Public/Developer/CxxRuntimeLib')
| -rw-r--r-- | Public/Developer/CxxRuntimeLib/.gitkeep | 0 | ||||
| -rw-r--r-- | Public/Developer/CxxRuntimeLib/Sources/New+Delete.cxx | 33 |
2 files changed, 0 insertions, 33 deletions
diff --git a/Public/Developer/CxxRuntimeLib/.gitkeep b/Public/Developer/CxxRuntimeLib/.gitkeep deleted file mode 100644 index e69de29b..00000000 --- a/Public/Developer/CxxRuntimeLib/.gitkeep +++ /dev/null diff --git a/Public/Developer/CxxRuntimeLib/Sources/New+Delete.cxx b/Public/Developer/CxxRuntimeLib/Sources/New+Delete.cxx deleted file mode 100644 index 5ff3612f..00000000 --- a/Public/Developer/CxxRuntimeLib/Sources/New+Delete.cxx +++ /dev/null @@ -1,33 +0,0 @@ -/* ------------------------------------------- - - Copyright Mahrouss Logic - -------------------------------------------- */ - -#include <Headers/Heap.h> - -typedef SizeType size_t; - -void* operator new[](size_t sz) -{ - if (sz == 0) - ++sz; - - return RtTlsAllocate(sz, kStandardAllocation); -} - -void* operator new(size_t sz) -{ - if (sz == 0) - ++sz; - - return RtTlsAllocate(sz, kArrayAllocation); -} - -void operator delete[](void* ptr) -{ - if (ptr == nullptr) - return; - - RtTlsFree(ptr); -}
\ No newline at end of file |
