Skip to content

Instantly share code, notes, and snippets.

@kuc-arc-f
Created June 13, 2014 09:45
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 kuc-arc-f/fc14f9da1102e62f7f39 to your computer and use it in GitHub Desktop.
Save kuc-arc-f/fc14f9da1102e62f7f39 to your computer and use it in GitHub Desktop.
sample, asm.js
#include <emscripten.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
printf("hello, world!\n");
EM_ASM(
//js-call
console.log( '#hello, world-Inline-JS ');
);
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment