c2nim problem with char[] to UncheckardArray[char]

2022-08-31 Thread alexgustafson
Ok, thanks for taking a look. I have a script that does some preprocessing on the .h files and some post processing on the .nim files after the c2nim conversion. I was looking at how nimraylib_now does it, and trying to do something similar. I am dealing with this in the post-processing by repl

c2nim problem with char[] to UncheckardArray[char]

2022-08-30 Thread planetis
I don't think any of the directives mention in the [docs](https://github.com/nim-lang/c2nim/blob/master/doc/c2nim.rst) could be helpful in your case. Maybe edit the generated file by hand and change it to cstring/string.

c2nim problem with char[] to UncheckardArray[char]

2022-08-30 Thread alexgustafson
Hi, I am trying to use c2nim to make a wrapper for the Clap AudioPlugin API. I have a line of c code that looks like this: static CLAP_CONSTEXPR const char CLAP_EXT_LATENCY[] = "clap.latency"; Run c2nim converts that to: var CLAP_EXT_LATENCY*: UncheckedA