luaur_vm/macros/restorestack.rs
1//! Source: `VM/src/ldo.h` — #define restorestack(L, n) ((TValue*)((char*)L->stack + (n)))
2//! (hand-fixed: the generated body had a cast-precedence error and unqualified
3//! types that break at expansion sites)
4
5#[allow(non_snake_case)]
6#[macro_export]
7macro_rules! restorestack {
8 ($L:expr, $n:expr) => {
9 (((*$L).stack as *mut u8).offset($n as isize) as *mut $crate::type_aliases::t_value::TValue)
10 };
11}
12
13pub use restorestack;