Remove debugging print stacks from function
ci/woodpecker/push/debug Pipeline was successful Details

This commit is contained in:
SeanOMik 2024-02-17 14:30:10 -05:00
parent 35bd889b48
commit 8b88612890
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
1 changed files with 0 additions and 14 deletions

View File

@ -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 {