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

fixes #24434; C gen issue using nim-lang/opengl #24435

Merged
merged 1 commit into from
Nov 15, 2024
Merged

fixes #24434; C gen issue using nim-lang/opengl #24435

merged 1 commit into from
Nov 15, 2024

Conversation

ringabout
Copy link
Member

@ringabout ringabout commented Nov 15, 2024

fixes #24434

In #24432

let ex = "NIM_EXTERNC N_NIMCALL(void, nimLoadProcs$1)(void) {$2}$N$N" %
        [(i.ord - '0'.ord).rope, extract(el)]
procs.addDeclWithVisibility(ExternC):
   procs.addProcHeader(ccNimCall, "nimLoadProcs" & $(i.ord - '0'.ord), "void", cProcParams())

extern "C" makes a function-name in C++ have C linkage; it should be effaced with C compiler

@Araq Araq merged commit cd9ce37 into devel Nov 15, 2024
21 checks passed
@Araq Araq deleted the pr_extern_c branch November 15, 2024 21:52
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from cd9ce37

Hint: mm: orc; opt: speed; options: -d:release
177696 lines; 8.640s; 653.516MiB peakmem

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

Successfully merging this pull request may close these issues.

C gen issue using nim-lang/opengl
3 participants