MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / Release

Method Release

CryScriptSystem/ScriptSystem.cpp:1139–1159  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

1137//////////////////////////////////////////////////////////////////////
1138//////////////////////////////////////////////////////////////////////
1139void CScriptSystem::Release()
1140{
1141#ifdef _DEBUG
1142 char sTemp[100];
1143 int nCreationNumber;
1144#endif
1145 while(!m_stkScriptObjectsPool.empty())
1146 {
1147 CScriptObject *pObj=m_stkScriptObjectsPool.back();
1148#ifdef _DEBUG
1149 nCreationNumber=pObj->m_nCreationNumber;
1150#endif
1151 delete pObj;
1152 m_stkScriptObjectsPool.pop_back();
1153#ifdef _DEBUG
1154 sprintf(sTemp,"delete[%d] obj Pool size %d new\n",nCreationNumber,m_stkScriptObjectsPool.size());
1155 ::OutputDebugString(sTemp);
1156#endif
1157 }
1158 delete this;
1159}
1160
1161
1162//////////////////////////////////////////////////////////////////////

Callers 6

GetCallsStackMethod · 0.45
CreateEmptyObjectMethod · 0.45
CreateObjectMethod · 0.45
CreateGlobalObjectMethod · 0.45
CreateScriptSystemFunction · 0.45
GetBreakPointsMethod · 0.45

Calls 4

emptyMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected