-
I want to know how to support variadic argument in a graceful way, my implement as follows:
In this way function can call in lua with argument number less than 9, but user may be calling with more arguments which is uncertain. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
khvzak
Apr 30, 2022
Replies: 1 comment 1 reply
Answer selected by
yongman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://docs.rs/mlua/latest/mlua/struct.Variadic.html