We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bddac9 commit 6fb89d5Copy full SHA for 6fb89d5
1 file changed
src/function.rs
@@ -363,7 +363,7 @@ impl Function {
363
364
let mut ar: ffi::lua_Debug = mem::zeroed();
365
lua.push_ref(&self.0);
366
- #[cfg(not(feature = "luau"))] // TODO: cfg for u
+ #[cfg(not(feature = "luau"))]
367
let res = ffi::lua_getinfo(state, cstr!(">Snu"), &mut ar);
368
#[cfg(feature = "luau")]
369
let res = ffi::lua_getinfo(state, -1, cstr!("sn"), &mut ar);
@@ -393,6 +393,7 @@ impl Function {
393
num_params: ar.nparams as _,
394
#[cfg(not(feature = "lua51"))]
395
is_vararg: ar.isvararg != 0,
396
397
nups: ar.nups as _,
398
}
399
0 commit comments