aboutsummaryrefslogtreecommitdiff
path: root/system/include/emscripten.h
blob: 4d321b2c9307374a2668203b8eb1e0060cba0f61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
 * 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
 */

#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