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*: UncheckedArray[char] = "clap.latency"
Run
when I try to compile that though, I get a type mismatch error:
Error: type mismatch: got 'string' for '"clap.latency"' but expected
'UncheckedArray[char]'
Run
I have tried casting the string to UncheckedArray and using cstring, but the
compiler always complains. I am looking for a solution for this problem, but
also a way that I might be able to preprocess the file so that c2nim converts
it to something compilable.
Thanks in advance for any tips!