Add an example on how to use it

This commit is contained in:
PMunch 2018-07-06 10:26:45 +02:00
commit 18f0549ab2
2 changed files with 58 additions and 0 deletions

7
examples/plugin.nim Normal file
View 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!"