I'm trying to wrap fftw3: https://github.com/FFTW/fftw3/blob/master/api/fftw3.h
It relies extensively on using the concatenation operator ##.
In the c2nim manual it clearly states "c2nim cannot translate any macro that contains the ## token concatenation operator."
However, it is not clear whether it should be able to handle it if using the "def" directive. E.g. in the source of c2nim when handling "def":
of pxDirConc:
# just ignore this token: this implements token merging correctly
discard
I tried c2nim and using def on a test file but it did not work (complains about a missing semicolon): https://gist.github.com/anonymous/dc5af36f040b5e99325f
I probably have two options: a) manage the ## manually to prepare the fftw3.h file... b) fix c2nim to handle it.
I am very new to nimrod, but if someone could point out a path to fix ## operator support in c2nim, perhaps I could give it a try.
BTW a##b could be supported in #define too; it can be translated to `a b` (note the backticks).