Skip to content

Commit 6fb89d5

Browse files
committed
WIP portability
1 parent 5bddac9 commit 6fb89d5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/function.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ impl Function {
363363

364364
let mut ar: ffi::lua_Debug = mem::zeroed();
365365
lua.push_ref(&self.0);
366-
#[cfg(not(feature = "luau"))] // TODO: cfg for u
366+
#[cfg(not(feature = "luau"))]
367367
let res = ffi::lua_getinfo(state, cstr!(">Snu"), &mut ar);
368368
#[cfg(feature = "luau")]
369369
let res = ffi::lua_getinfo(state, -1, cstr!("sn"), &mut ar);
@@ -393,6 +393,7 @@ impl Function {
393393
num_params: ar.nparams as _,
394394
#[cfg(not(feature = "lua51"))]
395395
is_vararg: ar.isvararg != 0,
396+
#[cfg(not(feature = "luau"))]
396397
nups: ar.nups as _,
397398
}
398399
}

0 commit comments

Comments
 (0)