Sign in
chromium
/
external
/
github.com
/
kripken
/
emscripten
/
refs/heads/executable_output
/
.
/
test
/
other
/
wasm2c
/
unsafe-library.c
blob: 28d4a85783180970acf5f201f94dc27d7102f3b8 [
file
] [
edit
]
#include
<emscripten.h>
#include
<stdio.h>
EMSCRIPTEN_KEEPALIVE
int
twice
(
int
x
)
{
return
x
+
x
;
}
EMSCRIPTEN_KEEPALIVE
int
do_bad_thing
(
int
size
)
{
return
printf
(
"I am in a sandbox and should not be able to print this!"
);
}