Files
m2dev-server-src/src/game/malloc_allocator.h
2025-08-18 02:12:07 +02:00

22 lines
376 B
C++

#ifndef _MALLOC_ALLOCATOR_H_
#define _MALLOC_ALLOCATOR_H_
// Allocator implementation detail based on default CRT malloc/free.
class MallocAllocator {
public:
MallocAllocator() {}
~MallocAllocator() {}
void SetUp() {}
void TearDown() {}
void* Alloc(size_t size) {
return ::malloc(size);
}
void Free(void* p) {
::free(p);
}
};
#endif // _MALLOC_ALLOCATOR_H_