Advertisement
Guest User

Untitled

a guest
Feb 15th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1.  
  2. proc add( x, y: cint ): cint {.stdcall,exportc,dynlib} =
  3. return x + y
  4.  
  5. proc iterate( n: cint ): void {.stdcall,exportc,dynlib} =
  6. echo( "in iter" )
  7.  
  8. # changing to string segfaults from c
  9. #echo( $n )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement