I’m not very worried about mapping data types as I can make my export function generate wrappers to map things into and out of a few common types, and I figured I could also export them from the dll if I want to get fancy.
Thanks for the reference to the opengl bindings, I’ll take a look. The gist is that they build a symbolic expression declaring a function, and then evaluate it to get the function created?
I want to handle reload, so I’d make my generated bindings check for stale function pointers in some way.