summary refs log tree commit diff stats
path: root/examples/cross_calculator/nim_backend/backend.nim
blob: ffa4311f9dd532b2d4caf401d7b8d3673a96b617 (plain) (blame)
1
2
3
4
5
# Backend for the different user interfaces.

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