macro_rules! define_global_property {
($global_property:ident, $value:ty, $validate: expr) => { ... };
($global_property: ident, $value: ty) => { ... };
}
Expand description
Defines a global property with the following parameters:
$global_property
: Name for the identifier type of the global property$value
: The type of the property’s value$validate
: A function (or closure) that checks the validity of the property (optional)