**cpp_tools.nim**
static:
var patcher_code = ""
# some macro black magic to generate C++ template code into the
"patcher_code" variable
writeFile("nimcache/cpp_tools.h", patcher_code)
Run
... this seems to do the trick just fine, the only thing I don't like about
this solution is the hard-coded "nimcache/" path ... afaik nim allows to change
the location of that cache directory via \--nimcache:PATH ... is there some
compile-time API that I could use to query the location of the nimcache
directory ?
Thanks