Created
October 31, 2019 10:03
-
-
Save TopRoupi/72b400c370c29a4c42530f3460bac76d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@[Link(ldflags: "#{__DIR__}/somador.o")] | |
lib Somador | |
fun sum(n1 : Int32, n2 : Int32) : Int32 | |
end | |
p Somador.sum 2, 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int sum(int n1, int n2){ | |
return n1 + n2; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int sum(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment