I am using the `exportc` pragma to attempt to export to c then WASM, but the
function never appears in the WASM and is generated with `N_LIB_PRIVATE` in the
c code. Is there anyway to remove this or am I getting the cause of my issue
completely wrong? (I found in the c code only the functions without
`N_LIB_PRIVATE` were exported in WASM)
C Code:
N_LIB_PRIVATE N_NIMCALL(NCSTRING, add_nfunc)(NCSTRING*
nfuncsX60flatArgs__p0, NI nfuncsX60flatArgs__p0Len_0); // I am pretty sure
N_NIMCALL does nothing as N_CDECL has the same error
Run
Nim Code
proc add*(nfuncs`flatArgs: openArray[cstring]): cstring {.gcsafe, exportc:
"add_nfunc".} =
…
Run