Templating dynlib calls

2021-03-12 Thread timothee
libffi to the rescue? see also how `compiletimeFFI` implemented, which solves a similar problem, at compile time (ie at runtime for nim compiler)

Templating dynlib calls

2021-03-12 Thread drkameleon
Thanks a lot for the pointers! I'll sure have a look into it! ;-)

Templating dynlib calls

2021-03-12 Thread drkameleon
OK, so here comes another weird question from lol. I've been experimenting with dynamic/shared libraries and calling it different symbols/functions. Let's take this as an example: **Library** # nim c -d:release --app:lib testlib.nim {.push dynlib exportc.} proc d