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

Trouble to convert ansi C header to nim #179

Open Milerius opened 4 years ago

Milerius commented 4 years ago

Hello I try to convert https://github.com/SanderMertens/flecs/blob/master/include/flecs.h

But I got an error when running c2nim:

/Users/romanszterg/flecs/include/flecs.h(202, 41) Error: identifier expected, but got: ( (pxParLe)

Even I try to remove error by commenting code it's pushing the problem away:

/Users/romanszterg/flecs/include/flecs.h(228, 18) Error: token expected: ;

Is it because the header itself use some macros ?

Milerius commented 4 years ago

cc @SanderMertens