mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 18:32:11 +00:00
Fix incorrect signature for nimLoadProcs when using cpp backend (#6699)
This commit is contained in:
committed by
Andreas Rumpf
parent
d4cdd92bc9
commit
06a6347929
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user