alchemist-macros 0.0.0

Hot-reload game engine & editor (WIP—MVP coming)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;
use quote::*;
use syn::*;

pub fn derive_encompass(input: TokenStream) -> TokenStream {
    let input = parse_macro_input!(input as DeriveInput);

    let core_path = utils::core_path_attr(&input.attrs);

    let ident = input.ident.clone();

    let implementation = quote! {
        impl #core_path::encompass::Encompass for #ident {}
    };

    implementation.into()
}