Remove debugging print stacks from function
ci/woodpecker/push/debug Pipeline was successful
Details
ci/woodpecker/push/debug Pipeline was successful
Details
This commit is contained in:
parent
35bd889b48
commit
8b88612890
|
@ -61,8 +61,6 @@ impl<'a> Function<'a> {
|
||||||
self.push_to_lua_stack(self.state)?;
|
self.push_to_lua_stack(self.state)?;
|
||||||
args_val.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);
|
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) {
|
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() {
|
let vals = if R::value_num().is_some() {
|
||||||
ValueVec::from_stack_limit(self.state, val_count)?
|
ValueVec::from_stack_limit(self.state, val_count)?
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue