luaur_vm/macros/clvalue.rs
1use crate::macros::check_exp::check_exp;
2use crate::macros::ttisfunction::ttisfunction;
3
4#[allow(non_snake_case)]
5#[macro_export]
6macro_rules! clvalue {
7 ($o:expr) => {
8 $crate::macros::check_exp::check_exp!(
9 $crate::macros::ttisfunction::ttisfunction!($o),
10 core::ptr::addr_of_mut!((*(*$o).value.gc).cl) as *mut $crate::records::closure::Closure
11 )
12 };
13}
14
15pub use clvalue;