* fixes #10578 * add tests * add changelog * add {.exportcpp.}
This commit is contained in:
parent
8397554315
commit
32769c478b
7 changed files with 76 additions and 34 deletions
9
tests/cpp/mexportc.nim
Normal file
9
tests/cpp/mexportc.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{.used.} # ideally, would not be needed
|
||||
|
||||
var fun0 {.exportc.} = 10
|
||||
proc fun1() {.exportc.} = discard
|
||||
proc fun2() {.exportc: "$1".} = discard
|
||||
proc fun3() {.exportc: "fun3Bis".} = discard
|
||||
|
||||
when defined cpp:
|
||||
proc funx1() {.exportcpp.} = discard
|
||||
Loading…
Add table
Add a link
Reference in a new issue