Skip to content

Instantly share code, notes, and snippets.

@rbnpercy
Created November 11, 2019 11:27
Show Gist options
  • Save rbnpercy/3eb39c9d10b4fe30b7807cc9c0931514 to your computer and use it in GitHub Desktop.
Save rbnpercy/3eb39c9d10b4fe30b7807cc9c0931514 to your computer and use it in GitHub Desktop.
{.compile: "logic.c".}
proc addTwoIntegers(a, b: cint): cint {.importc.}
when isMainModule:
echo addTwoIntegers(3, 7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment