- Make PClass derive from DObject so that it can participate in garbage collection.

- Import VM.

SVN r1841 (scripting)
This commit is contained in:
Randy Heit 2009-09-16 01:39:44 +00:00
commit fefc306a54
12 changed files with 3399 additions and 19 deletions

View file

@ -327,6 +327,15 @@ static void MarkRoot()
SectorMarker->SecNum = 0;
}
Mark(SectorMarker);
// Mark symbol tables
for (unsigned j = 0; j < PClass::m_Types.Size(); ++j)
{
PClass *cls = PClass::m_Types[j];
if (cls != NULL)
{
cls->Symbols.MarkSymbols();
}
}
// Mark bot stuff.
Mark(bglobal.firstthing);
Mark(bglobal.body1);