diff options
author | Juan M Gómez <info@jmgomez.me> | 2024-05-10 09:35:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-10 10:35:23 +0200 |
commit | fcc43fa9c8c501f9390811db6e5e074c57d6c663 (patch) | |
tree | 62f1823964581c35ac993a0731e7ea406a3cb28f | |
parent | ee59597cd4b1a275130a3e3017e279a59385ec28 (diff) | |
download | Nim-fcc43fa9c8c501f9390811db6e5e074c57d6c663.tar.gz |
Allow to `exportc` params. (#23396)
By allowing `exportc` in params one can decide the name of a param or to dont mangle them.
-rw-r--r-- | compiler/pragmas.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim index 4b871a500..ed1e067c0 100644 --- a/compiler/pragmas.nim +++ b/compiler/pragmas.nim @@ -88,7 +88,7 @@ const wGensym, wInject, wIntDefine, wStrDefine, wBoolDefine, wDefine, wCompilerProc, wCore} - paramPragmas* = {wNoalias, wInject, wGensym, wByRef, wByCopy, wCodegenDecl} + paramPragmas* = {wNoalias, wInject, wGensym, wByRef, wByCopy, wCodegenDecl, wExportc, wExportCpp} letPragmas* = varPragmas procTypePragmas* = {FirstCallConv..LastCallConv, wVarargs, wNoSideEffect, wThread, wRaises, wEffectsOf, wLocks, wTags, wForbids, wGcSafe, |