macro_rules! psm_stack_manipulation {
    (yes { $($yes: tt)* } no { $($no: tt)* }) => { ... };
}
Expand description

Macro that outputs its tokens only if psm::on_stack and psm::replace_stack are available.

Examples

psm_stack_manipulation! {
    yes {
        /* Functions `on_stack` and `replace_stack` are available here */
    }
    no {
        /* Functions `on_stack` and `replace_stack` are not available here */
    }
}