diff options
Diffstat (limited to 'test/calls.cpp')
-rw-r--r-- | test/calls.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/calls.cpp b/test/calls.cpp index b73dff3f4..0afb0eb69 100644 --- a/test/calls.cpp +++ b/test/calls.cpp @@ -1,5 +1,3 @@ -#include <cmath> -#include <algorithm> #include <emscripten.h> extern "C" { @@ -17,5 +15,10 @@ int EMSCRIPTEN_KEEPALIVE fibo(int x) { return fibo(x-1) + fibo(x-2); } +int EMSCRIPTEN_KEEPALIVE run_script() { + emscripten_run_script("Module.print('hello from called script')"); + return emscripten_run_script_int("1+2+3+4-1"); +} + } |