From 18d805d8468bdfc87ead90bd2bed222c4edcbbc7 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 10 Mar 2015 16:39:45 +0100 Subject: [PATCH] squeaknim can deal with arrays --- src/squeaknim.nim | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) 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 -- libgit2 0.22.2