Skip to content

Instantly share code, notes, and snippets.

@nickdesaulniers
Created June 5, 2013 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickdesaulniers/5715989 to your computer and use it in GitHub Desktop.
Save nickdesaulniers/5715989 to your computer and use it in GitHub Desktop.
example code for emscripten issue
n add_three (x: int) -> int {
3 + x
}
fn double (x: int) -> int {
2 * x
}
#[no_mangle]
pub extern fn meaning_of_life () -> int {
double(add_three(18))
}
fn main () {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment