title: Javascript callback coding style in C?
body: <p>Ok this question may be shocking for javascript haters and hard-core developers, forgive me!</p>
  
  <p>I love the way I can write a callback function in javascript</p>
  
  <pre><code>var on = function(isTrue, doThis) {if (isTrue) doThis();}
  </code></pre>
  
  <p>Is there any possibility to replicate the same idea in C ? I know it's type dependent.
  More and less this is my case: </p>
  
  <p>I have multiple booleans and multiple filters so my use would be, instead of writing </p>
  
  <pre><code>if (thisIs == true) executeThisVoid(passingThisStruct)
  </code></pre>
  
  <p>I would love to write:</p>
  
  <pre><code>on(thisIs, function(struct){ do this and this})
  </code></pre>
  
  <p>or simply</p>
  
  <pre><code>on(thisIs, executeThisVoid);
  </code></pre>
  
  <p>Many thanks everybody.</p>