Do a lot of cleanup on module table/vector
This commit is contained in:
@@ -459,6 +459,10 @@ int LuaCoreStack::rawlen(LuaSlot obj) const {
|
||||
return lua_rawlen(L_, obj.index());
|
||||
}
|
||||
|
||||
int LuaCoreStack::nkeys(LuaSlot obj) const {
|
||||
return lua_nkeys(L_, obj.index());
|
||||
}
|
||||
|
||||
int LuaCoreStack::gettabletype(LuaSlot tab) const {
|
||||
uint16_t bits = lua_getflagbits(L_, tab.index());
|
||||
return LUA_TT_GENERAL + (bits & 0x000F);
|
||||
|
||||
Reference in New Issue
Block a user