luaur_bytecode/macros/
vregrange.rs1#[allow(unused_macros)]
2macro_rules! VREGRANGE {
3 ($v:expr, $count:expr, $func:expr) => {
4 LUAU_ASSERT!(
5 (($v as i32)
6 + (if ($count as i32) < 0 {
7 0
8 } else {
9 $count as i32
10 })) as u32
11 <= ($func.maxstacksize as u32)
12 )
13 };
14}
15
16pub(crate) use VREGRANGE;