expanda-macros 0.1.1

macros for expanda crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14

macro_rules! error {
    ($token:tt, $msg:literal) => {
        quote::quote_spanned!($token.span().into() => compile_error!($msg)).into()
    }
}
pub(crate) use error;

macro_rules! err {
    ($token:tt, $msg:literal) => {
        Err(crate::error::error!($token, $msg))
    }
}
pub(crate) use err;