Macro flatdata::define_archive [−][src]
macro_rules! define_archive { ($name:ident, $builder_name:ident, $archive_schema:expr; // struct resources $(($struct_resource:ident, $struct_setter:ident, $struct_type:tt, $struct_schema:expr)),*; // vector resources $(($vector_resource:ident, $vector_setter:ident, $vector_start:ident, $element_type:tt, $element_schema:expr)),*; // multivector resources $(($multivector_resource:ident, $multivector_start:ident, $variadic_type:tt, $variadic_type_schema:expr, $multivector_resource_index:ident, $index_type:path)),*; // raw data resources $(($raw_data_resource:ident, $raw_data_resource_setter:ident, $raw_data_schema:expr)),*; // subarchive resources $(($subarchive_resource:ident, $subarchive_type:tt, $subarchive_builder_type:tt, $subarchive_schema:expr)),*; // optional subarchive resources $(($opt_subarchive_resource:ident, $opt_subarchive_type:tt, $opt_subarchive_builder_type:tt, $opt_subarchive_schema:expr)),* ) => { ... }; }
Macro used by generator to define a flatdata archive and corresponding archive builder.