summary refs log blame commit diff stats
path: root/tests/cpp/mexportc.nim
blob: dee51f15741e4e0f58486c071be9aa67a2d843f1 (plain) (tree)
1
2
3
4
5
6
7
8
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