blob: ed89783f882e79468d851b0cfda1eb1bccdefe57 (
plain)
1
2
3
4
5
6
7
8
|
#include <emscripten/em_asm.h>
int main() {
EM_ASM({ Module.print("Hello world"); });
int x = EM_ASM_INT({ return $0 + $1; }, 13, 27);
EM_ASM_({ Module.print("Got " + $0); }, x);
return 0;
}
|