swc_ecma_minifier/
macros.rs

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

/// Used when a function decided to give up.
macro_rules! log_abort {
    ($($tt:tt)+) => {{
        #[cfg(feature = "debug")]
        {
            tracing::trace!(
                kind = "abort",
                $($tt)*
            );
        }
    }};
}

macro_rules! dump_change_detail {
    ($($tt:tt)+) => {{
        #[cfg(feature = "debug")]
        {
            tracing::trace!(
                kind = "detail",
                $($tt)*
            );
        }
    }};
}

macro_rules! trace_op {
    ($($tt:tt)+) => {{
        #[cfg(feature = "debug")]
        {
            tracing::trace!(
                $($tt)*
            );
        }
    }};
}