diff options
Diffstat (limited to 'system/include/emscripten.h')
-rw-r--r-- | system/include/emscripten.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/system/include/emscripten.h b/system/include/emscripten.h deleted file mode 100644 index ea078e8c..00000000 --- a/system/include/emscripten.h +++ /dev/null @@ -1,54 +0,0 @@ -/** - * 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); -extern int emscripten_run_script_int(const char *script); - -/* - * Set a C function as the main event loop. The JS environment - * will call that function at a specified number of frames per - * second. Setting 0 as the fps will use the default browser - * frame rate. - */ -extern void emscripten_set_main_loop(void (*func)(), int fps); -extern void emscripten_cancel_main_loop(); - -/* - * This macro-looking function will cause Emscripten to - * generate a comment in the generated code. - * XXX This is deprecated for now, because it requires us to - * hold all global vars in memory. We need a better solution. - */ -//extern void EMSCRIPTEN_COMMENT(const char *text); - -/* - * Profiling tools. - * INIT must be called first, with the maximum identifier that - * will be used. BEGIN will add some code that marks - * the beginning of a section of code whose run time you - * want to measure. END will finish such a section. Note: If you - * call begin but not end, you will get invalid data! - * The profiling data will be written out if you call Profile.dump(). - */ -extern void EMSCRIPTEN_PROFILE_INIT(int max); -extern void EMSCRIPTEN_PROFILE_BEGIN(int id); -extern void EMSCRIPTEN_PROFILE_END(int id); - -#ifdef __cplusplus -} -#endif - |