treeform / genny

Generate a shared library and bindings for many languages.
MIT License
224 stars 9 forks source link

first class function export support #42

Open raviteja-bhupatiraju opened 2 years ago

raviteja-bhupatiraju commented 2 years ago

I am trying to generate a function with a function pointer argument.

Code: proc gen_nums(a: int, f: proc(i: int)) = f(a)

Error: exp.nim(30, 1) template/generic instantiation of exportProcs from here exp.nim(27, 30) Error: Invalid node kind nnkProcTy for macros.$