gem-macros 0.1.0

proc macros for gemstone
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use proc_macro::TokenStream;

mod emit;
mod helpers;
mod kw;

#[proc_macro]
pub fn bitfield(input: TokenStream) -> TokenStream {
    emit::emit_bitfield(input, false)
}

#[proc_macro]
pub fn bitfield_debug(input: TokenStream) -> TokenStream {
    emit::emit_bitfield(input, true)
}