cps 0.2.0

Assists in the creation of readable and maintainable macro_rules! macros
Documentation
use cps::cps;

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

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

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

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


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

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