From 25da2a2711915412229f72aa2bfefb4e120568b9 Mon Sep 17 00:00:00 2001 From: Corwin Date: Tue, 15 Feb 2022 21:34:18 +0000 Subject: [PATCH] expose the inner proc macro in a macro rules --- agb/src/display/object.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/agb/src/display/object.rs b/agb/src/display/object.rs index 35a1bce4..b43b0c11 100644 --- a/agb/src/display/object.rs +++ b/agb/src/display/object.rs @@ -64,6 +64,18 @@ pub enum Size { 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>);