title: C Preprocessor, Stringify the result of a macro
body: <p>I want to stringify the result of a macro expansion.</p>
  
  <p>I've tried with the following:</p>
  
  <pre><code>#define QUOTE(str) #str
  #define TEST thisisatest
  #define TESTE QUOTE(TEST)
  </code></pre>
  
  <p>And TESTE gets expanded to: "TEST", while I'm trying to get "thisisatest". I know this is the correct behavior of the preprocessor but can anyone help me with a way to achieve the other one?</p>
  
  <pre><code>Using TESTE #TEST is not valid
  Using TESTE QUOTE(thisisatest) is not what I'm trying to do
  </code></pre>