Fix incorrect signature for nimLoadProcs when using cpp backend (#6699)

This commit is contained in:
Kartik Saranathan
2017-11-07 17:48:03 -05:00
committed by Andreas Rumpf
parent d4cdd92bc9
commit 06a6347929

View File

@@ -1153,7 +1153,7 @@ proc genInitCode(m: BModule) =
for i, el in pairs(m.extensionLoaders):
if el != nil:
let ex = "N_NIMCALL(void, nimLoadProcs$1)(void) {$2}$N$N" %
let ex = "NIM_EXTERNC N_NIMCALL(void, nimLoadProcs$1)(void) {$2}$N$N" %
[(i.ord - '0'.ord).rope, el]
add(m.s[cfsInitProc], ex)