aboutsummaryrefslogtreecommitdiff
path: root/system/include/emscripten.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-10 19:58:29 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-10-10 19:58:29 -0700
commitd07a37e39426f7051fcca1aab13beba2d7ec0956 (patch)
treedf63381df12aee31523a6e97a737ecc3001dbddf /system/include/emscripten.h
parent37347e52fc6b7110783efba5fad19c195dd375ec (diff)
EMSCRIPTEN_COMMENT for source comments
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
+