wasm4-impl 0.1.3

Procedural macros implementation for WASM-4 bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod include_sprites;

use proc_macro::TokenStream;

#[proc_macro]
pub fn include_sprites_impl(item: TokenStream) -> TokenStream {
    syn::parse(item)
        .and_then(include_sprites::implementation)
        .map_or_else(
            syn::Error::into_compile_error,
            quote::ToTokens::into_token_stream,
        )
        .into()
}