nim-lang / c2nim

c2nim is a tool to translate Ansi C code to Nim. The output is human-readable Nim code that is meant to be tweaked by hand before and after the translation process.
MIT License
509 stars 63 forks source link

added --importc option #197

Closed garettbass closed 3 years ago

garettbass commented 3 years ago

Added a command line option to annotate procs with {.importc:"<origName>".}

The --header command line option adds importc and header pragmas to types as well as procs, but I only want importc pragmas on the procs.