diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-03-31 10:09:15 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-03-31 10:09:15 -0700 |
commit | 30e9700d5a0693b043a2fb7c3010d0006905b5e5 (patch) | |
tree | 6a6b1b5040f554ca705cb43237716bc2739cc3f4 /system | |
parent | 13e7b4cf2453c7332ed41297e4a7343747f2274f (diff) |
add EM_ASM_ARGS, a nicer name for EM_ASM_
Diffstat (limited to 'system')
-rw-r--r-- | system/include/emscripten/emscripten.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/system/include/emscripten/emscripten.h b/system/include/emscripten/emscripten.h index 2b883f93..73836018 100644 --- a/system/include/emscripten/emscripten.h +++ b/system/include/emscripten/emscripten.h @@ -42,8 +42,8 @@ extern "C" { /* * Input-output versions of EM_ASM. * - * EM_ASM_ (an extra _ is added) allows sending values (ints - * or doubles) into the code. If you also want a return value, + * EM_ASM_ (an extra _ is added) or EM_ASM_ARGS allow sending values + * (ints or doubles) into the code. If you also want a return value, * EM_ASM_INT receives arguments (of int or double type) * and returns an int; EM_ASM_DOUBLE does the same and returns * a double. @@ -60,6 +60,7 @@ extern "C" { * EM_ASM_INT_V and EM_ASM_DOUBLE_V respectively. */ #define EM_ASM_(code, ...) emscripten_asm_const_int(#code, __VA_ARGS__) +#define EM_ASM_ARGS(code, ...) emscripten_asm_const_int(#code, __VA_ARGS__) #define EM_ASM_INT(code, ...) emscripten_asm_const_int(#code, __VA_ARGS__) #define EM_ASM_DOUBLE(code, ...) emscripten_asm_const_double(#code, __VA_ARGS__) #define EM_ASM_INT_V(code) emscripten_asm_const_int(#code) |