title: How to implement a generic macro in C?
body: <pre><code>FUNC(param);
  </code></pre>
  
  <p>When <code>param</code> is <code>char *</code>,dispatch to <code>func_string</code>.</p>
  
  <p>when it's <code>int</code>,dispatch to <code>func_int</code></p>
  
  <p>I think there may be a solution to this,as variable types are known at compile time..</p>