We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
push_into_stack_multi
Variadic
1 parent 763c2b2 commit 3656043Copy full SHA for 3656043
1 file changed
src/multi.rs
@@ -297,6 +297,15 @@ impl<T: IntoLua> IntoLuaMulti for Variadic<T> {
297
fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue> {
298
MultiValue::from_lua_iter(lua, self)
299
}
300
+
301
+ unsafe fn push_into_stack_multi(self, lua: &RawLua) -> Result<c_int> {
302
+ let nresults = self.len() as i32;
303
+ check_stack(lua.state(), nresults + 1)?;
304
+ for value in self.0 {
305
+ value.push_into_stack(lua)?;
306
+ }
307
+ Ok(nresults)
308
309
310
311
impl<T: FromLua> FromLuaMulti for Variadic<T> {
0 commit comments