aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/include/emscripten/emscripten.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/system/include/emscripten/emscripten.h b/system/include/emscripten/emscripten.h
index dd1e01a4..ac880981 100644
--- a/system/include/emscripten/emscripten.h
+++ b/system/include/emscripten/emscripten.h
@@ -26,8 +26,11 @@ extern "C" {
* This also works with asm.js, as it outlines the code (it
* does a function call to reach it).
*
- * Note: double-quotes (") are not supported, but you can use
- * single-quotes (') in js anyhow.
+ * Notes: double-quotes (") are not supported, but you can use
+ * single-quotes (') in js anyhow.
+ *
+ * you can't access C variables with EM_ASM, use gcc
+ * inline asm for that, asm("code" : .. etc.)
*/
#define EM_ASM(...) emscripten_asm_const(#__VA_ARGS__)