Numworks Epsilon  1.4.1
Graphing Calculator Operating System
new.cpp
Go to the documentation of this file.
1 #include <stdlib.h>
2 
3 // See the C++ standard, section 3.7.4 for those definitions
4 
5 void * operator new(size_t size) {
6  return malloc(size);
7 }
8 
9 void operator delete(void * ptr) noexcept {
10  free(ptr);
11 }
12 
13 void * operator new[](size_t size) {
14  return ::operator new(size);
15 }
16 
17 void operator delete[](void * ptr) noexcept {
18  ::operator delete(ptr);
19 }
LIBA_BEGIN_DECLS void free(void *ptr)
Definition: malloc.c:33
void * malloc(size_t size)
Definition: malloc.c:44