macro_rules! compile_str {
($config:expr, $expr:expr $(,)?) => { ... };
($expr:expr $(,)?) => { ... };
}
Expand description
Compiles the given string of tokens and returns the output.
This macro will panic if we fail to invoke the compiler.
Same as the compile!
macro, but for strings. This allows you to do:
let output = postcompile::compile_str!(include_str!("some_file.rs"));
// ... do something with the output