refined the GC. Now it calls object destructors

This commit is contained in:
cozis
2021-12-06 12:27:34 +01:00
parent dbcf50c71b
commit f751cbcbd5
7 changed files with 216 additions and 64 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ void* Heap_Malloc (Heap *heap, TypeObject *type, Error *err);
void* Heap_RawMalloc(Heap *heap, int size, Error *err);
_Bool Heap_StartCollection(Heap *heap, Error *error);
_Bool Heap_StopCollection(Heap *heap);
void Heap_CollectReference(Object **referer, Heap *heap);
void Heap_CollectReference(Object **referer, void *heap);
float Heap_GetUsagePercentage(Heap *heap);
const TypeObject* Object_GetType(const Object *obj);