Useages - ScSofts/AutoGC GitHub Wiki
The AutoGC namespace consists:
GC_Init();
andGC_Shut();
. This two functions must be called in the main functionclass Object
,and all objects in the heaps MUST be based on itclass Hanged<class MemType>
,this class cannot be used by yourself. You can just callreturn heap.Escape(Obj);
to avoidMemType & Obj
being collected. Attention: a function return Hanged Object must call.unReceive();
to delete it or.receive(heap);
to move it to a new heap!class Int
andclass Long
and etc. just warpped theint
andlong
and etc. You can "New" them in the heap.