diff options
Diffstat (limited to 'new_op.cpp')
-rw-r--r-- | new_op.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/new_op.cpp b/new_op.cpp new file mode 100644 index 0000000..1867d2d --- /dev/null +++ b/new_op.cpp @@ -0,0 +1,10 @@ +#include <stdlib.h> + + +void *operator new(size_t sz) { + return malloc(sz); +} + +void operator delete(void *p) { + free(p); +} |