title: Passing variable type as function parameter
body: <p>Is it possible to pass variable type as part of a function parameter, e.g.:</p>
  
  <pre><code>void foo(varType type)
  {
    // Cast to global static
    unsigned char bar;
    bar = ((type *)(&amp;static_array))-&gt;member;
  }
  </code></pre>
  
  <p>I remember it has something to do with GCC's <code>typeof</code> and using macros?</p>