Quantum/lib/newdel.cpp
2023-12-16 16:17:02 +01:00

23 lines
340 B
C++

#include "libwasm.h"
void* operator new (unsigned long size) {
return calloc(1,size);
}
void operator delete (void* p) {
free (p);
}
void* operator new[] (unsigned long size) {
return calloc(1,size);
}
void operator delete[] (void* p) {
free (p);
}
void operator delete (void* p, unsigned size) {
(void) size;
free (p);
}