Skip to content

Instantly share code, notes, and snippets.

@TopRoupi
Created October 31, 2019 10:03
Show Gist options
  • Save TopRoupi/72b400c370c29a4c42530f3460bac76d to your computer and use it in GitHub Desktop.
Save TopRoupi/72b400c370c29a4c42530f3460bac76d to your computer and use it in GitHub Desktop.
@[Link(ldflags: "#{__DIR__}/somador.o")]
lib Somador
fun sum(n1 : Int32, n2 : Int32) : Int32
end
p Somador.sum 2, 3
#include <stdio.h>
int sum(int n1, int n2){
return n1 + n2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment