| 1183 | } |
| 1184 | |
| 1185 | bool CScriptObject::MoveNext() |
| 1186 | { |
| 1187 | if(m_nIterationCounter==-1) |
| 1188 | return false; |
| 1189 | //leave only the index into the stack |
| 1190 | while((lua_gettop(m_pLS)-(m_nIterationCounter+1))>1) |
| 1191 | { |
| 1192 | lua_pop(m_pLS,1); |
| 1193 | } |
| 1194 | return (lua_next(m_pLS, m_nIterationCounter+1) != 0); |
| 1195 | } |
| 1196 | |
| 1197 | bool CScriptObject::GetCurrent(int &nVal) |
| 1198 | { |
no test coverage detected