Login
7 branches 0 tags
Ben (X220t/Win10) Fixed GC marking invalid memory 7f20eb2 4 years ago 95 Commits
nujel / lib / allocator / roots.h
#pragma once
#include "../nujel.h"

lClosure *lRootsClosurePush(lClosure *c);
lClosure *lRootsClosurePop ();
void      lRootsClosureMark();

lVal *lRootsValPush(lVal *c);
lVal *lRootsValPop ();
void  lRootsValMark();

lString *lRootsStringPush(lString *s);
lString *lRootsStringPop ();
void     lRootsStringMark();

extern uint rootsClosureSP;
extern uint rootsValSP;
extern uint rootsStringSP;