| 24 | using namespace Mona; |
| 25 | |
| 26 | void 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 | |
| 35 | int LUAPersistentTable::Len(lua_State* pState) { |
| 36 | SCRIPT_CALLBACK(LUAPersistentTable,table) |
nothing calls this directly
no outgoing calls
no test coverage detected