Skip to main content

luaur_vm/macros/
api_incr_top.rs

1#[macro_export]
2#[allow(non_snake_case)]
3macro_rules! api_incr_top {
4    ($L:expr) => {
5        unsafe {
6            crate::macros::api_check::api_check!($L, (*$L).top < (*(*$L).ci).top);
7            (*$L).top = (*$L).top.add(1);
8        }
9    };
10}
11
12pub use api_incr_top;