title: C macro that creates an NSString variable with the variable name as the content of the string
body: <p>Despite the fact that this is not good coding practice, I want a macro that should work like the following:</p>
  
  <pre><code>CREATE_STRING(fooBar)
  </code></pre>
  
  <p>And it should create the following code:</p>
  
  <pre><code>NSString *fooBar = @"fooBar";
  </code></pre>
  
  <p>My macro looks like this:</p>
  
  <pre><code>#define CREATE_STRING(varName) NSString *varName = @"varName";
  </code></pre>
  
  <p>But now I get the following</p>
  
  <pre><code>NSString *fooBar = @"varName";
  </code></pre>
  
  <p>It seems to be such an easy problem to solve and I have already checked the documentation <a href="http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=/com.ibm.xlcpp8a.doc/language/ref/numnum.htm" rel="nofollow noreferrer">from IBM</a> but I just can't seem to get the <code>varName</code> into the string.</p>