summaryrefslogtreecommitdiffhomepage
path: root/Public/Developer/CxxRuntimeLib
diff options
context:
space:
mode:
Diffstat (limited to 'Public/Developer/CxxRuntimeLib')
-rw-r--r--Public/Developer/CxxRuntimeLib/.gitkeep0
-rw-r--r--Public/Developer/CxxRuntimeLib/Sources/New+Delete.cxx33
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