mirror of
https://github.com/CPunch/Cosmo.git
synced 2026-01-09 15:50:56 +00:00
added cosmoM_addRoot & cosmoM_removeRoot
This commit is contained in:
@@ -24,6 +24,8 @@ CObj *cosmoO_allocateBase(CState *state, size_t sz, CObjType type) {
|
||||
|
||||
obj->next = state->objects;
|
||||
state->objects = obj;
|
||||
|
||||
obj->nextRoot = NULL;
|
||||
#ifdef GC_DEBUG
|
||||
printf("allocated %p with OBJ_TYPE %d\n", obj, type);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user