title: Porting assembly code to c++
body: <p>I am porting assembly code to C++ and I have some problems porting a portion of it. </p>
  
  <p>I have a pointer declared as:</p>
  
  <pre><code>void* function;
  </code></pre>
  
  <p>and it is pointing to a function call:</p>
  
  <pre><code>void* function = getfunction(lib, fname);
  </code></pre>
  
  <p>I have a inline assembly code which I have to migrate to C++:</p>
  
  <pre><code>__asm { call function }
  </code></pre>
  
  <p>How to call this pointer in C++? </p>
  
  <p>Please note that the arguments <code>lib</code> and <code>fname</code> are of type <code>void*</code>.</p>
  
  <p>And <code>void* function</code>  points to value returned by <code>getfunction()</code>.</p>