Skip to content

Commit

Permalink
Allow to exportc params. (#23396)
Browse files Browse the repository at this point in the history
By allowing `exportc` in params one can decide the name of a param or to
dont mangle them.
  • Loading branch information
jmgomez authored May 10, 2024
1 parent ee59597 commit fcc43fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/pragmas.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fcc43fa

Please sign in to comment.