macro_rules! sources { ($($name:ident => {$($tt:tt)*}),* $(,)?) => { ... }; }
Expand description
Helper macro to define a collection of sources populatedc with the given entries.
Calling this macro is fallible with alloc::Error, so you should do it in a
function that returns a Result
.
let sources = rune::sources! {
entry => {
pub fn main() {
42
}
}
};
Ok::<_, rune::support::Error>(())