use crate::tao::archetype::CodegenFlags;
use zamm_yin::node_wrappers::CommonNodeTrait;
use zamm_yin::tao::archetype::*;
use zamm_yin::tao::form::FormTrait;
use zamm_yin::tao::relation::attribute::Attribute;
#[macro_export]
macro_rules! define {
($name:ident) => {
let mut $name = Tao::archetype().individuate_as_archetype();
$name.set_internal_name_str(stringify!($name));
$name.mark_newly_defined();
};
}
pub fn aa(archetype: Archetype) -> AttributeArchetype {
if !(archetype.attribute_logic_activated()
|| archetype.has_parent(Attribute::archetype().as_archetype())
|| archetype
.parents()
.iter()
.any(|a| a.attribute_logic_activated()))
{
println!("Warning: {:?} is not known to be an attribute.", archetype);
}
AttributeArchetype::from(archetype.id())
}
pub trait BackwardsCompatibility {}