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

Method Init

MonaServer/sources/LUAPersistentTable.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24using namespace Mona;
25
26void LUAPersistentTable::Init(lua_State* pState, LUAPersistentTable& table) {
27 lua_getmetatable(pState, -1);
28 lua_pushcfunction(pState,&LUAPersistentTable::Len);
29 lua_setfield(pState, -2, "__len");
30 lua_newtable(pState);
31 lua_setfield(pState,-2, "|items");
32 lua_pop(pState, 1);
33}
34
35int LUAPersistentTable::Len(lua_State* pState) {
36 SCRIPT_CALLBACK(LUAPersistentTable,table)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected