1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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(stringify!($name).to_owned());
$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 {}