mirror of
https://github.com/mlua-rs/mlua
synced 2026-06-08 16:05:43 +00:00
Some changes for panic correctness, stack usage correctness, and speed
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ impl<'lua> Thread<'lua> {
|
||||
|
||||
let nresults = ffi::lua_gettop(thread_state);
|
||||
let mut results = MultiValue::new();
|
||||
check_stack(thread_state, 1);
|
||||
check_stack(thread_state, 2);
|
||||
for _ in 0..nresults {
|
||||
results.push_front(lua.pop_value(thread_state));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user