aboutsummaryrefslogtreecommitdiff
path: root/system/include/emscripten.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-12 17:52:46 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-10-12 17:52:46 -0700
commit3f227142c58c4a5543f6ba3f39ee35765304aa88 (patch)
treeae293be36d2d619cc711294c961d7481d9bfa47c /system/include/emscripten.h
parent668267060800fd4e3021d544774653e1db2dd075 (diff)
parent5c8918ceb32bb1abf735d39f73e67e10b8da409f (diff)
Merge branch 'master' of https://github.com/kripken/emscripten
Diffstat (limited to 'system/include/emscripten.h')
-rw-r--r--system/include/emscripten.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/system/include/emscripten.h b/system/include/emscripten.h
index 5f3689c9..4d321b2c 100644
--- a/system/include/emscripten.h
+++ b/system/include/emscripten.h
@@ -7,7 +7,23 @@
* http://emscripten.org
*/
-// Interface to the underlying JS engine. This function will
-// eval() the given script.
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * Interface to the underlying JS engine. This function will
+ * eval() the given script.
+ */
extern void emscripten_run_script(const char *script);
+/*
+ * This macro-looking function will cause Emscripten to
+ * generate a comment in the generated code.
+ */
+extern void EMSCRIPTEN_COMMENT(const char *text);
+
+#ifdef __cplusplus
+}
+#endif
+