That is done in libs like gtk a lot. The Nim procs needs the cdecl pragma for this to work.
- Hi all, pass Nim functions to C code as callbacks? hyvuminhtuan
- Re: Hi all, pass Nim functions to C code as callbacks... Stefan_Salewski
That is done in libs like gtk a lot. The Nim procs needs the cdecl pragma for this to work.