diff options
Diffstat (limited to 'system/include')
-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) |