MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / CreateMetatables

Method CreateMetatables

Code/CryEngine/CryScriptSystem/ScriptSystem.cpp:998–1014  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

996//////////////////////////////////////////////////////////////////////
997//////////////////////////////////////////////////////////////////////
998void CScriptSystem::CreateMetatables()
999{
1000 m_pUserDataMetatable = CreateTable();
1001 m_pUserDataMetatable->AddRef();
1002
1003 m_pPreCacheBufferTable = CreateTable();
1004 m_pPreCacheBufferTable->AddRef();
1005
1006 /*
1007 m_pUserDataMetatable->AddFunction( )
1008
1009 // Make Garbage collection for user data metatable.
1010 lua_newuserdatabox(L, this);
1011 lua_pushcclosure(L, CScriptSystem::GCTagHandler, 1);
1012 lua_settagmethod(L, m_nGCTag, "gc");
1013 */
1014}
1015
1016//////////////////////////////////////////////////////////////////////
1017//////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

AddRefMethod · 0.45

Tested by

no test coverage detected