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
502 stars 62 forks source link

Add various features #256

Closed elcritch closed 1 year ago

elcritch commented 1 year ago

I took out the C preprocessor pieces, as that can be done externally. However, I added a fare number of small improvements.

For example, all the render options are able to be set in C directives or by the command line using the --render: option. The delete option is handy for importing large headers.