cpreprocess 1.0.0

Procedural macro that runs a C preprocessor on the input
Documentation

crates.io docs.rs license

cpreprocess

Stupid and cursed Rust procedural macro that runs a C preprocessor on the input

Usage

[dependencies]

cpreprocess = "*"

Example

fn main() {
    cpreprocess::cpreprocess! {"
        #define MACRO(NAME) fn print_ ## NAME () { println!(\"hello world\"); }

        MACRO(hello_world)

        print_hello_world()
    "}
}