diff --git a/src/squeaknim.nim b/src/squeaknim.nim index 7eb258d..410e9e4 100644 --- a/src/squeaknim.nim +++ b/src/squeaknim.nim @@ -103,6 +103,9 @@ proc mapTypeToC(symbolicType: NimNode): string {.compileTime.} = of ntyPtr, ntyVar: expectKind t, nnkBracketExpr result = mapTypeToC(t[1]) & "*" + of ntyArray: + expectKind t, nnkBracketExpr + result = mapTypeToC(t[2]) & "*" of ntyCString: result = "char*" of ntyPointer: result = "void*" of ntyInt: result = intType