Sign in
chromium
/
external
/
github.com
/
WebAssembly
/
binaryen
/
refs/heads/filesystem
/
.
/
test
/
lld
/
em_asm.cpp
blob: b8c3db365d7bd28d324a826182081989660f9187 [
file
] [
log
] [
blame
] [
edit
]
#include
<emscripten/em_asm.h>
int
main
()
{
EM_ASM
({
Module
.
print
(
"Hello \\ world\t\n"
);
});
int
x
=
EM_ASM_INT
({
return
$0
+
$1
;
},
13
,
27
);
EM_ASM_
({
Module
.
print
(
"Got "
+
$0
);
},
x
);
return
0
;
}