Module rune_modules::macros
source · [−]Expand description
std::macros
module for the Rune Language.
Usage
Add the following to your Cargo.toml
:
rune-modules = { version = "0.12.0", features = ["macros"] }
Install it into your context:
let mut context = rune::Context::with_default_modules()?;
context.install(&rune_modules::macros::module(true)?)?;
Use it in Rune:
ⓘ
fn main() {
println(`Hello from ${file!()}:${line!()});
}
Functions
Construct the supplemental std::macros
module.