| 104 | } |
| 105 | |
| 106 | bool CScriptObject::Create(CScriptSystem *pScriptSystem) |
| 107 | { |
| 108 | m_pLS=(lua_State *)pScriptSystem->GetScriptHandle(); |
| 109 | _GUARD_STACK(m_pLS); |
| 110 | Detach(); |
| 111 | |
| 112 | lua_newtable(m_pLS); |
| 113 | |
| 114 | Attach(); |
| 115 | return true; |
| 116 | |
| 117 | //return false; |
| 118 | } |
| 119 | |
| 120 | bool CScriptObject::CreateGlobal(CScriptSystem *pScriptSystem, const char *sName) |
| 121 | { |
no test coverage detected