MCPcopy Create free account
hub / github.com/axmolengine/axmol / pushLuaValueArray

Method pushLuaValueArray

extensions/scripting/lua-bindings/manual/LuaStack.cpp:430–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430void 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
442bool LuaStack::pushFunctionByHandler(int nHandler)
443{

Callers 1

Calls 3

lua_rawsetiFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected