~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to system/include/emscripten/emscripten.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-09-20 22:44:35 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130920224435-apuwj4fsl3fqv1a6
Tags: 1.5.6~20130920~6010666-1
* New snapshot release
* Update the list of supported architectures to the same as libv8
  (Closes: #723129)
* emlibtool has been removed from upstream.
* Fix warning syntax-error-in-dep5-copyright
* Refresh of the patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#endif
20
20
 
21
21
/*
 
22
 * Convenient syntax for inline assembly/js. Allows stuff like
 
23
 *
 
24
 *    EM_ASM(window.alert('hai'));
 
25
 *
 
26
 * Note: double-quotes (") are not supported, but you can use
 
27
 *       single-quotes (') in js anyhow.
 
28
 */
 
29
#define EM_ASM(...) asm(#__VA_ARGS__)
 
30
 
 
31
/*
22
32
 * Forces LLVM to not dead-code-eliminate a function. Note that
23
 
 * closure may still eliminate it at the JS level, for which you
24
 
 * should use EXPORTED_FUNCTIONS (see settings.js).
25
 
 *
26
 
 * **DEPRECATED**: Use EXPORTED_FUNCTIONS instead, which will work
27
 
 *                 with closure, asm.js, etc. For example
28
 
 *                   -s EXPORTED_FUNCTIONS=["_main", "myfunc"]
 
33
 * you still need to use EXPORTED_FUNCTIONS so it stays alive
 
34
 * in JS, e.g.
 
35
 *     emcc -s EXPORTED_FUNCTIONS=["_main", "_myfunc"]
 
36
 * and in the source file
 
37
 *     void EMSCRIPTEN_KEEPALIVE myfunc() {..}
29
38
 */
30
 
/* #define EMSCRIPTEN_KEEPALIVE __attribute__((used)) */
 
39
#define EMSCRIPTEN_KEEPALIVE __attribute__((used))
31
40
 
32
41
/*
33
42
 * Interface to the underlying JS engine. This function will
161
170
void emscripten_set_canvas_size(int width, int height);
162
171
 
163
172
/*
 
173
 * Get the current pixel width and height of the <canvas> element
 
174
 * as well as whether the canvas is fullscreen or not.
 
175
 */
 
176
void emscripten_get_canvas_size(int *width, int *height, int *isFullscreen);
 
177
 
 
178
/*
164
179
 * Returns the highest-precision representation of the
165
180
 * current time that the browser provides. This uses either
166
181
 * Date.now or performance.now. The result is *not* an