title: C pre-processor defining for generated function names
body: <p>I have a situation where I have quite a few generated functions, and would like to point them at some generic functions that I have created (to allow me to reuse the base code when the generated function names change).</p>
  
  <p>Essentially, I have a list of function names as follows:</p>
  
  <pre><code>void Callback_SignalName1(void);
  void Callback_SignalName2(void);
  ...etc
  </code></pre>
  
  <p>Once these are generated, I would like to define a macro to allow them to be called generically.  My idea was this, but I haven't had any luck implementing it...as the <strong>C</strong> pre-processor takes the name of the macro instead of what the macro is defined as:</p>
  
  <pre><code>#define SIGNAL1 SignalName1
  #define SIGNAL2 SignalName2
  
  #define FUNCTION_NAME(signal) (void  Callback_ ## signal ## (void))
  ...
  ...
  FUNCTION_NAME(SIGNAL1)
  {
    ..
    return;
  }
  </code></pre>
  
  <p>The issue is that I receive </p>
  
  <pre><code>void Callback_SIGNAL1(void)
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>void Callback_SignalName1(void)
  </code></pre>
  
  <p>Is there a good way around this?</p>