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