swc_ecma_minifier/
macros.rs

1/// Used when something is modified.
2macro_rules! report_change {
3    ($($tt:tt)+) => {{
4        #[cfg(feature = "debug")]
5        tracing::debug!(
6            kind = "change",
7            $($tt)*
8        );
9    }};
10}
11
12/// Used when a function decided to give up.
13macro_rules! log_abort {
14    ($($tt:tt)+) => {{
15        #[cfg(feature = "debug")]
16        {
17            tracing::trace!(
18                kind = "abort",
19                $($tt)*
20            );
21        }
22    }};
23}
24
25macro_rules! dump_change_detail {
26    ($($tt:tt)+) => {{
27        #[cfg(feature = "debug")]
28        {
29            tracing::trace!(
30                kind = "detail",
31                $($tt)*
32            );
33        }
34    }};
35}
36
37macro_rules! trace_op {
38    ($($tt:tt)+) => {{
39        #[cfg(feature = "debug")]
40        {
41            tracing::trace!(
42                $($tt)*
43            );
44        }
45    }};
46}