Crate cpreprocess
source · [−]Expand description
Stupid and cursed Rust procedural macro that runs a C preprocessor on the input
Example
cpreprocess::cpreprocess!(r#"
#define MACRO(NAME) fn print_ ## NAME () { println!("hello world"); }
MACRO(hello_world)
print_hello_world()
"#);
Macros
Stupid and cursed Rust procedural macro that runs a C preprocessor on the input