base init

This commit is contained in:
d1str4ught
2025-08-18 00:36:52 +02:00
parent cff3015742
commit 4e679320a3
527 changed files with 199969 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#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_