server/game/src/malloc_allocator.h
2022-03-05 12:44:06 +02:00

22 lines
373 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_