diff --git a/src/function.rs b/src/function.rs index 78dc086..64972f4 100755 --- a/src/function.rs +++ b/src/function.rs @@ -61,8 +61,6 @@ impl<'a> Function<'a> { self.push_to_lua_stack(self.state)?; args_val.push_to_lua_stack(self.state)?; - State::print_stack(self.state); - let val_count = R::value_num().unwrap_or(lua::LUA_MULTRET as usize); match lua::lua_pcall(s, args_len, val_count as i32, handler_idx) { @@ -81,18 +79,6 @@ impl<'a> Function<'a> { _ => {} } - State::print_stack(self.state); - - /* let ret_count = lua::lua_gettop(s); - let val = if ret_count > 1 { - let vals = ValueVec::from_lua_stack(self.state)?; - Value::Multi(vals) - } else if ret_count == 1 { - Value::from_lua_stack(self.state)? - } else { - Value::None - }; */ - let vals = if R::value_num().is_some() { ValueVec::from_stack_limit(self.state, val_count)? } else {