Macro naga::proc::constant_evaluator::with_dollar_sign

source ยท
macro_rules! with_dollar_sign {
    ($($body:tt)*) => { ... };
}
Expand description

A macro that allows dollar signs ($) to be emitted by other macros. Useful for generating macro_rules! items that, in turn, emit their own macro_rules! items.

Technique stolen directly from https://github.com/rust-lang/rust/issues/35853#issuecomment-415993963.