luaur_vm/macros/lua_g_runerror.rs
1use crate::functions::lua_g_runerror_l::lua_g_runerror_l;
2
3// C++ `luaG_runerror(L, fmt, ...)` — per the project varargs convention the
4// format string is a Rust format literal and the C fmt parameter is unused
5#[allow(non_snake_case)]
6#[macro_export]
7macro_rules! lua_g_runerror {
8 ($l:expr, $fmt:expr $(, $($arg:expr),+ )? $(,)? ) => {{
9 $crate::functions::lua_g_runerror_l::lua_g_runerror_l(
10 $l,
11 core::ptr::null(),
12 format_args!($fmt $(, $($arg),* )?),
13 )
14 }};
15}
16
17pub use lua_g_runerror;
18
19#[allow(unused_imports)]
20pub use lua_g_runerror as luaG_runerror;