Kylin/DataStructure/Object.cpp

17 lines
377 B
C++
Raw Normal View History

2023-12-27 10:29:16 +08:00
#include "Object.h"
#include <stdlib.h>
namespace Kylin {
void *Object::operator new(size_t size) noexcept { return malloc(size); }
void Object::operator delete(void *p) { free(p); }
void *Object::operator new[](size_t size) noexcept { return malloc(size); }
void Object::operator delete[](void *p) { free(p); }
Object::~Object() {}
} // namespace Kylin