summary refs log tree commit diff stats
path: root/examples/cross_calculator/nim_backend
diff options
context:
space:
mode:
authordef <dennis@felsin9.de>2015-02-14 23:43:31 +0100
committerdef <dennis@felsin9.de>2015-02-15 00:06:51 +0100
commit6244cc2e4fb7aaabd14352a21add5236220a8198 (patch)
tree58f6b1254cc71db8be2dc84084e7034597bf6fe7 /examples/cross_calculator/nim_backend
parent512db9aea6ac77234e2ea6a48b1cc20e6b24a687 (diff)
downloadNim-6244cc2e4fb7aaabd14352a21add5236220a8198.tar.gz
Fix cross_calculator example
Diffstat (limited to 'examples/cross_calculator/nim_backend')
-rw-r--r--examples/cross_calculator/nim_backend/backend.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/cross_calculator/nim_backend/backend.nim b/examples/cross_calculator/nim_backend/backend.nim
new file mode 100644
index 000000000..ffa4311f9
--- /dev/null
+++ b/examples/cross_calculator/nim_backend/backend.nim
@@ -0,0 +1,5 @@
+# Backend for the different user interfaces.

+

+proc myAdd*(x, y: int): int {.cdecl, exportc.} = 

+  result = x + y

+