From bde894cff21da12c3cc319f44378847ed0a0a10f Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 5 Mar 2015 01:32:14 +0100 Subject: [PATCH] solve the name mangling issue in Nim --- src/squeaknim.nim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/squeaknim.nim b/src/squeaknim.nim index 7fed0ca..cb1a08a 100644 --- a/src/squeaknim.nim +++ b/src/squeaknim.nim @@ -129,11 +129,7 @@ macro exportSt*(body: stmt): stmt = # # ^self externalCallFailed. result = body - when defined(cpp): - result[pragmaPos].add(ident"exportc", ident"dynlib", ident"cdecl", - newColonExpr(ident"codegenDecl", newLit"""extern "C" $# $#$#""")) - else: - result[pragmaPos].add(ident"exportc", ident"dynlib", ident"cdecl") + result[pragmaPos].add(ident"exportc", ident"dynlib", ident"cdecl") let params = result[paramPos] let procName = $result[0] var st = procName -- libgit2 0.22.2