aboutsummaryrefslogtreecommitdiff
path: root/system/include/emscripten.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-09 07:27:06 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-10-09 07:27:06 -0700
commit8c35202927a7cd8f14b219e4949195e1e6bc6946 (patch)
tree2cc79d36f916c220b3bc449cba4d3ab602f534c4 /system/include/emscripten.h
parentefaf3590ac33702eeff423e31e85f690b1fc7eb2 (diff)
parent06354eda6092add55034c692bd65734a61083e8b (diff)
Merge branch 'llvm-svn'
Conflicts: src/dlmalloc.c tests/dlmalloc.c tests/runner.py tools/shared.py
Diffstat (limited to 'system/include/emscripten.h')
-rw-r--r--system/include/emscripten.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/include/emscripten.h b/system/include/emscripten.h
new file mode 100644
index 00000000..5f3689c9
--- /dev/null
+++ b/system/include/emscripten.h
@@ -0,0 +1,13 @@
+/**
+ * This file contains a few useful things for compiling C/C++ code
+ * with Emscripten, an LLVM-to-JavaScript compiler.
+ *
+ * The code can be used permissively under the MIT license.
+ *
+ * http://emscripten.org
+ */
+
+// Interface to the underlying JS engine. This function will
+// eval() the given script.
+extern void emscripten_run_script(const char *script);
+