Initial commit - restart from existing code
This commit is contained in:
22
lib/All/entt/test/common/new_delete.h
Normal file
22
lib/All/entt/test/common/new_delete.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef ENTT_COMMON_NEW_DELETE_H
|
||||
#define ENTT_COMMON_NEW_DELETE_H
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
namespace test {
|
||||
|
||||
struct new_delete {
|
||||
static void *operator new(std::size_t count) {
|
||||
return ::operator new(count);
|
||||
}
|
||||
|
||||
static void operator delete(void *ptr) {
|
||||
::operator delete(ptr);
|
||||
}
|
||||
|
||||
int value{};
|
||||
};
|
||||
|
||||
} // namespace test
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user