Nim/examples/cross_calculator/nimrod_backend/backend.nim
2013-03-16 23:53:07 +01:00

5 lines
119 B
Nim

# Backend for the different user interfaces.
proc myAdd*(x, y: int): int {.cdecl, exportc.} =
result = x + y