title: how can i declare variables via macros?
body: <p>first of all, I'm using MS's Visual Studio and using C language. </p>
  
  <p>Recently I need to declare variables with just one same statement which likes a macro. </p>
  
  <p>However as you know, I can declare just one variable which have same name. </p>
  
  <p>for example, this is not possible. </p>
  
  <pre><code>int iVar1;
  int iVar1; // this is not possible. 
  </code></pre>
  
  <p>so I thought about macros include <strong>__<em>LINE</em>__</strong> , if I can use this predefined macro, I can declare lots of variables via just one macro statement. </p>
  
  <p>But it was difficult to make. </p>
  
  <p>I made macro like this. </p>
  
  <pre><code>#define MY_LINE_VARIABLE        int g_iLine##__LINE__##Var = 0;
  </code></pre>
  
  <p>but after compile, i could get this variable named 'g_iLine_<em>LINE</em>_Var' instead of 'g_iLine123Var'</p>
  
  <p>I want to know that is this possile, and how can i make it. </p>
  
  <p>Furthermore, I need to use <strong>__<em>FILE</em>__</strong> macro if possible. but this macro might be changed with string data. so I can not be sure. </p>
  
  <p>Any advice will be helpful. </p>
  
  <p>Thank you for your help in advance. </p>