Skip to main content

luaur_vm/macros/
checkconsistency.rs

1use crate::macros::iscollectable::iscollectable;
2use crate::macros::ttype::ttype;
3
4#[allow(non_snake_case)]
5#[macro_export]
6macro_rules! checkconsistency {
7    ($obj:expr) => {
8        $crate::macros::LUAU_ASSERT::LUAU_ASSERT!(
9            !$crate::macros::iscollectable::iscollectable!($obj)
10                || ($crate::macros::ttype::ttype!($obj) == (*$obj).value.gc.gch.tt)
11        )
12    };
13}
14
15pub use checkconsistency;