| 428 | } |
| 429 | |
| 430 | void LuaStack::pushLuaValueArray(const LuaValueArray& array) |
| 431 | { |
| 432 | lua_newtable(_state); /* L: table */ |
| 433 | int index = 1; |
| 434 | for (LuaValueArrayIterator it = array.begin(); it != array.end(); ++it) |
| 435 | { |
| 436 | pushLuaValue(*it); /* L: table value */ |
| 437 | lua_rawseti(_state, -2, index); /* table[index] = value, L: table */ |
| 438 | ++index; |
| 439 | } |
| 440 | } |
| 441 | |
| 442 | bool LuaStack::pushFunctionByHandler(int nHandler) |
| 443 | { |
no test coverage detected