luagc.GetAllGCObjects
Description
Returns a table containing all GCobjects.
The GClist always goes from newest to oldest GCobjects due to how the GCobjects are chained.
This function itself create a table which is why doing
luagc.GetAllGCObjects(luagc.GetCurrentGCHeadObject())
Will always have 1 object - which is the returned table.
You can do table.remove(gcList, 1) to remove the first entry to get rid of it.
Recently Added
This was recently added in version (0.8 - DEV).
Arguments
1any targetObject
If given a targetObject object, it will return all GCobjects until it reached the targetObject after which it'll stop.
(the targetObject won't be included in the result!)
Returns
Example
An example usage