Skip to main content

luaur_vm/macros/
lua_l_optstring.rs

1use crate::functions::lua_l_optlstring::lua_l_optlstring;
2
3#[allow(non_upper_case_globals)]
4pub const LUA_L_OPTSTRING: () = ();
5
6#[allow(non_snake_case)]
7#[macro_export]
8macro_rules! luaL_optstring {
9    ($l:expr, $n:expr, $d:expr) => {{
10        let mut len: usize = 0;
11        unsafe {
12            $crate::functions::lua_l_optlstring::lua_l_optlstring(
13                $l,
14                $n,
15                $d,
16                &mut len as *mut usize,
17            )
18        }
19    }};
20}
21
22pub use luaL_optstring;