title: C++ custom #pragma
body: <p>I would like to know how to make the compiler understand a customized argument for <code>#pragma</code> macro.</p>
  
  <p>My goal is to execute external script using macro, I suppose using <code>#pragma</code> is the way to go; if there are other ways to do so, please let me know. </p>
  
  <p>Syntax would be something like:</p>
  
  <pre><code>#pragma add_controller(class_name, "class_alias")
  </code></pre>
  
  <p>so that I can generate a dynamic .h file containing the following:</p>
  
  <p><code>register_controller&lt;class_name&gt;("class_alias");</code></p>
  
  <p>and append to the end of file everytime the compiler interpret this <code>#pragma</code>.</p>