/////////////////////////////////////////////////////////////////////
| 38 | |
| 39 | ////////////////////////////////////////////////////////////////////////// |
| 40 | void 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 | ////////////////////////////////////////////////////////////////////////// |
| 61 | void CScriptTable::PushRef(IScriptTable* pObj) |
no test coverage detected