| 327 | } |
| 328 | |
| 329 | bool CScriptObject::GetValueChain(const char *sKey, int &nVal) |
| 330 | { |
| 331 | _GUARD_STACK(m_pLS); |
| 332 | bool res=false; |
| 333 | lua_pushstring(m_pLS, sKey); |
| 334 | GET_FUNCTION(m_pLS, - 2); |
| 335 | if (lua_isnumber(m_pLS, - 1)) |
| 336 | { |
| 337 | res = true; |
| 338 | nVal =(int)lua_tonumber(m_pLS, - 1); |
| 339 | } |
| 340 | return res; |
| 341 | } |
| 342 | |
| 343 | bool CScriptObject::GetValue(const char *sKey, int &nVal) |
| 344 | { |
no test coverage detected