Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Mh, this sounds a bit like a plugin architecture to me - in this case this question might help you: <a href="https://stackoverflow.com/questions/43322/whats-safe-for-a-c-plug-in-system">What&#39;s safe for a C++ plug-in system?</a> I guess you would need to write some generic plugin and your macro provides the glue to fit in the user defined functions and hiding the complex stuff.</p> <p>You could also have a look at cppunit (<a href="http://sourceforge.net/apps/mediawiki/cppunit/index.php?title=Main_Page" rel="nofollow noreferrer">http://sourceforge.net/apps/mediawiki/cppunit/index.php?title=Main_Page</a>) which essentially enables you to write some functions, wrap them in macros which provide the glue to the cppunit framework and then let them run in a generic testrunner. But it doesn't sound like an easy task. Using some scripting language like lua seems way easier.</p> <p><strong>Update</strong>: There are some c interpreters out there, for example Cint (<a href="http://root.cern.ch/drupal/content/cint" rel="nofollow noreferrer">http://root.cern.ch/drupal/content/cint</a>). And appartenly TCC (<a href="http://bellard.org/tcc/" rel="nofollow noreferrer">http://bellard.org/tcc/</a>) supports interpreter style calling (I guess it's inline compiling and execution). I have not used these tools that way but they might ease the pain around the "having to compile it into a dynamic dll" problem. Although I still would like to hear the rational to go down such a path instead of using a scripting language like Lua which is way more suitable for those purposes.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload