MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / Pairs

Method Pairs

MonaServer/sources/Script.cpp:426–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426int Script::Pairs(lua_State* pState) {
427 // 1 table
428 if (!lua_istable(pState, 1)) {
429 SCRIPT_BEGIN(pState)
430 SCRIPT_ERROR("pairs on a ", lua_typename(pState,lua_type(pState, 1)), " value")
431 SCRIPT_END
432 return 0;
433 }
434 lua_pushcfunction(pState,&Next);
435 lua_pushvalue(pState, 1);
436 return 2;
437}
438
439int Script::IPairs(lua_State* pState) {
440 // 1 table

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected