rune
pub fn with_context<F, O>(new: MacroContext, f: F) -> O where F: FnOnce() -> O,
Install the given context and call the provided function with the installed context.
This will panic if called while the current context is in use.
use rune::macros::{with_context, MacroContext}; let ctx = MacroContext::empty(); with_context(ctx, || { rune::quote!(hello self); });