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

Method PushRef

Code/CryEngine/CryScriptSystem/ScriptTable.cpp:40–58  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

38
39//////////////////////////////////////////////////////////////////////////
40void CScriptTable::PushRef()
41{
42 if (m_nRef != DELETED_REF && m_nRef != NULL_REF)
43 lua_getref(L, m_nRef);
44 else
45 {
46 lua_pushnil(L);
47 if (m_nRef == DELETED_REF)
48 {
49 assert(0 && "Access to deleted script object");
50 CryFatalError("Access to deleted script object %x", (unsigned int)(UINT_PTR)this);
51 }
52 else
53 {
54 assert(0 && "Pushing Nil table reference");
55 ScriptWarning("Pushing Nil table reference");
56 }
57 }
58}
59
60//////////////////////////////////////////////////////////////////////////
61void CScriptTable::PushRef(IScriptTable* pObj)

Callers 2

PushTableMethod · 0.80
DumpStateToFileMethod · 0.80

Calls 2

CryFatalErrorFunction · 0.85
ScriptWarningFunction · 0.85

Tested by

no test coverage detected