
cpreprocess
Stupid and cursed Rust procedural macro that runs a C preprocessor on the input
Usage
[dependencies]
cpreprocess = "*"
Example
fn main() {
cpreprocess::cpreprocess!(r#"
#define MACRO(NAME) fn print_ ## NAME () { println!("hello world"); }
MACRO(hello_world)
print_hello_world()
"#)
}