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

Method CreateGlobalObject

CryScriptSystem/ScriptSystem.cpp:813–826  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

811//////////////////////////////////////////////////////////////////////
812//////////////////////////////////////////////////////////////////////
813IScriptObject* CScriptSystem::CreateGlobalObject(const char *sName)
814{
815 BEGIN_CHECK_STACK
816 CScriptObject *pObj = CreateScriptObject();
817 if (!pObj->CreateGlobal(this, sName))
818 {
819 pObj->Release();
820 END_CHECK_STACK
821 return NULL;
822 };
823// pObj->SetThis(pThis);
824 END_CHECK_STACK
825 return pObj;
826}
827
828//////////////////////////////////////////////////////////////////////
829//////////////////////////////////////////////////////////////////////

Callers 3

InitGlobalMethod · 0.80
InitMethod · 0.80
ResetMethod · 0.80

Calls 2

CreateGlobalMethod · 0.80
ReleaseMethod · 0.45

Tested by

no test coverage detected