def self(self, vm: LuaVM): a, b, c = self.getAbc() a += 1 b += 1 vm.Copy(b, a + 1) vm.GetRk(c) vm.GetTable(b) vm.Replace(a)
def setupval(self, vm: LuaVM): a, b, _ = self.getAbc() a += 1 b += 1 vm.Copy(a, vm.LuaUpvalueIndex(b))