Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{.compilerproc, importc.} doesn't honor importc with nim cpp #18655

Open
timotheecour opened this issue Aug 8, 2021 · 0 comments
Open

{.compilerproc, importc.} doesn't honor importc with nim cpp #18655

timotheecour opened this issue Aug 8, 2021 · 0 comments

Comments

@timotheecour
Copy link
Member

timotheecour commented Aug 8, 2021

While working on #15827 I encountered this.

{.compilerproc, importc.} has C++ linkage with nim cpp

workaround

when defined cpp:
  {.pragma: nimexectrace_internal, compilerproc, importc, codegenDecl: "NIM_EXTERNC $1 $2$3".}
else:
  {.pragma: nimexectrace_internal, compilerproc, importc.}
proc nimExecTraceEnter(procIndex: int, name: cstring) {.nimexectrace_internal.}

Additional Information

1.5.1 6b3c77e
D20210805T114254

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant