mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
expose the inner proc macro in a macro rules
This commit is contained in:
parent
efe67423c1
commit
25da2a2711
|
@ -64,6 +64,18 @@ pub enum Size {
|
||||||
S32x64 = 0b10_11,
|
S32x64 = 0b10_11,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[macro_export]
|
||||||
|
macro_rules! include_aseprite {
|
||||||
|
($aseprite_path: expr) => {{
|
||||||
|
use $crate::display::object::{Size, Sprite, Tag, TagMap};
|
||||||
|
use $crate::display::palette16::Palette16;
|
||||||
|
use $crate::phf;
|
||||||
|
|
||||||
|
$crate::include_aseprite_inner!($aseprite_path);
|
||||||
|
|
||||||
|
(SPRITES, TAGS)
|
||||||
|
}};
|
||||||
|
}
|
||||||
|
|
||||||
pub struct TagMap(phf::Map<&'static str, Tag>);
|
pub struct TagMap(phf::Map<&'static str, Tag>);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue