Skip to main content

luaur_vm/macros/
expandstacklimit.rs

1#[macro_export]
2#[allow(non_snake_case)]
3macro_rules! expandstacklimit {
4    ($L:expr, $p:expr) => {
5        unsafe {
6            luaur_common::LUAU_ASSERT!(($p) <= (*$L).stack_last);
7            if (*(*$L).ci).top < ($p) {
8                (*(*$L).ci).top = ($p);
9            }
10        }
11    };
12}
13
14pub use expandstacklimit;