expose the inner proc macro in a macro rules

This commit is contained in:
Corwin 2022-02-15 21:34:18 +00:00
parent efe67423c1
commit 25da2a2711

View file

@ -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>);