summaryrefslogtreecommitdiffstats
path: root/tokio/src/macros/loom.rs
blob: d57d9fb0f7b267cf6432cca95ffebd227daa28df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
macro_rules! if_loom {
    ($($t:tt)*) => {{
        #[cfg(loom)]
        const LOOM: bool = true;
        #[cfg(not(loom))]
        const LOOM: bool = false;

        if LOOM {
            $($t)*
        }
    }}
}