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

Method IPairs

MonaServer/sources/Script.cpp:439–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439int Script::IPairs(lua_State* pState) {
440 // 1 table
441 if (!lua_istable(pState, 1)) {
442 SCRIPT_BEGIN(pState)
443 SCRIPT_ERROR("ipairs on a ", lua_typename(pState,lua_type(pState, 1)), " value")
444 SCRIPT_END
445 return 0;
446 }
447 lua_pushcfunction(pState,&INext);
448 lua_pushvalue(pState, 1);
449 return 2;
450}
451
452
453const UInt8* Script::ToId(const UInt8* data, UInt32 size, UInt8 id[64]) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected