alloy_sol_macro_expander/expand/
macros.rs
1#[cfg(feature = "json")]
2macro_rules! if_json {
3 ($($t:tt)*) => { $($t)* };
4}
5
6#[cfg(not(feature = "json"))]
7macro_rules! if_json {
8 ($($t:tt)*) => {
9 crate::expand::emit_json_error();
10 TokenStream::new()
11 };
12}