cps 0.1.0

Assists in the creation of readable and maintainable macro_rules! macros
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use cps::cps;

#[cps]
macro_rules! macro1 {
    () => { BaseCase };

    (stringify) =>
    let $x:tt = macro1!() in
    {
        stringify!($x)
    };
}


#[test]
fn stringify_order_single_call() {
    assert_eq!(macro1!(stringify), "BaseCase");
}