| 118 | } |
| 119 | |
| 120 | bool CScriptObject::CreateGlobal(CScriptSystem *pScriptSystem, const char *sName) |
| 121 | { |
| 122 | m_pLS=(lua_State *)pScriptSystem->GetScriptHandle(); |
| 123 | _GUARD_STACK(m_pLS); |
| 124 | Detach(); |
| 125 | |
| 126 | lua_newtable(m_pLS); |
| 127 | Attach(); |
| 128 | _GET_THIS(); |
| 129 | lua_setglobal(m_pLS, sName); |
| 130 | |
| 131 | return true; |
| 132 | } |
| 133 | |
| 134 | void CScriptObject::PushBack(int nVal) |
| 135 | { |
no test coverage detected