aboutsummaryrefslogtreecommitdiff
path: root/Src/nu/nonewthrow.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/nu/nonewthrow.c')
-rw-r--r--Src/nu/nonewthrow.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/Src/nu/nonewthrow.c b/Src/nu/nonewthrow.c
new file mode 100644
index 00000000..9b4523ab
--- /dev/null
+++ b/Src/nu/nonewthrow.c
@@ -0,0 +1,18 @@
+void *operator new(size_t size)
+{
+ return malloc(size);
+}
+
+void *operator new[](size_t size)
+{
+ return malloc(size);
+}
+
+void operator delete(void *ptr)
+{
+ free(ptr);
+}
+void operator delete[](void *ptr)
+{
+ free(ptr);
+} \ No newline at end of file