register-macros 0.0.3

Procedural macros for the "registers" crate
Documentation
1
2
3
4
5
6
7
pub fn sign(size: usize) -> syn::Type {
    syn::parse_str(&format!("i{}", size)).unwrap()
}

pub fn unsign(size: usize) -> syn::Type {
    syn::parse_str(&format!("u{}", size)).unwrap()
}