1
2
3
4
5
6
7
8
9
10
11
12
#[cfg(feature = "json")]
macro_rules! if_json {
    ($($t:tt)*) => { $($t)* };
}

#[cfg(not(feature = "json"))]
macro_rules! if_json {
    ($($t:tt)*) => {
        crate::expand::emit_json_error();
        TokenStream::new()
    };
}