diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-15 12:43:05 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-15 12:43:05 -0800 |
commit | ecb9e4de28fd3de0d51eaf9c45c58587f52ff9db (patch) | |
tree | a0fd56c28a9fb71cef1fc2b2ff8352fb6f6a8042 /system | |
parent | fc97a98e22712ebc9ba2d0c7b44c8ec8321fb5bd (diff) |
mention inline asm() syntax in EM_ASM comment
Diffstat (limited to 'system')
-rw-r--r-- | system/include/emscripten/emscripten.h | 7 |
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__) |