| 1311 | |
| 1312 | |
| 1313 | bool CScriptObject::GetCurrentKey(const char* &sKey) |
| 1314 | { |
| 1315 | if(m_nIterationCounter==-1) |
| 1316 | return false; |
| 1317 | |
| 1318 | // if (lua_isstring(m_pLS, - 2)) |
| 1319 | if(lua_rawtag(m_pLS, -2)==LUA_TSTRING) // get the internal type without converting it |
| 1320 | { |
| 1321 | sKey=(char *)lua_tostring(m_pLS, - 2); |
| 1322 | return true; |
| 1323 | } |
| 1324 | return false; |
| 1325 | } |
| 1326 | |
| 1327 | bool CScriptObject::GetCurrentKey(int &nKey) |
| 1328 | { |
no test coverage detected