title: A macro with quotes around a metavariable
body: <p>I want to println! a macro identifier, (mostly for testing macros), but if I do it like this:</p>
  
  <pre><code>macro_rules! printname(
  (
      $name:ident;
  ) =&gt; (
      println!("$name");
  )
  
  let this_name = "hello";
  
  printname!(this_name);
  </code></pre>
  
  <p>it just prints </p>
  
  <blockquote>
    <p>$name</p>
  </blockquote>
  
  <p>and if i do <code>println!("{}", $name);</code> it of course substitutes in the variable <code>this_name</code> and prints </p>
  
  <blockquote>
    <p>hello</p>
  </blockquote>
  
  <p>What I actually want it to do is print </p>
  
  <blockquote>
    <p>this_name</p>
  </blockquote>
  
  <p>Is there a way to quote a metavariable to get its value?</p>