Add an example on how to use it
This commit is contained in:
parent
6ee2eec9ad
commit
18f0549ab2
2 changed files with 58 additions and 0 deletions
7
examples/plugin.nim
Normal file
7
examples/plugin.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Compile with: nim c --noMain --app:lib plugin.nim
|
||||
proc hello(x: int) {.exportc.} =
|
||||
echo "Hello world, ", x
|
||||
|
||||
proc highFive(): int {.exportc.} =
|
||||
result = 5
|
||||
echo "Here you go!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue