Bring back GC and new files for commands
This commit is contained in:
@@ -178,6 +178,14 @@ void Dealloc(Allocator alo, T **p) {
|
||||
alo.proc(alo.object, AllocatorKind_Deallocate, *p, 0);
|
||||
*p = NULL;
|
||||
}
|
||||
#define DeallocEx(alo, p) (alo).proc((alo).object, AllocatorKind_Deallocate, (p), 0);
|
||||
|
||||
template <class T>
|
||||
void Dealloc2(Allocator alo, T *p) {
|
||||
if (*p == NULL) return;
|
||||
alo.proc(alo.object, AllocatorKind_Deallocate, *p, 0);
|
||||
*p = NULL;
|
||||
}
|
||||
|
||||
Allocator GetSystemAllocator();
|
||||
#define MemoryZero(x, size) memset(x, 0, size)
|
||||
|
||||
Reference in New Issue
Block a user