procedure p1 (a: integer); cdecl; external 'libx'; name 'p1';
from a nim file named 'libx.nim' that contains:
proc p1(a: int) = ...
I want the pascal interface to be written to a separate file. The nim file is a library that is linked to a pascal program.
Thanks, Mark
I was hoping that a macro could generate the text by processing the ast of a proc signature and write the result to a file instead of being further processed by the nim compiler.
Nim proc to pascal procedure might nearly be just some text juggling, but I'd also like to convert nim object types to pascal record types.