Closed mmomtchev closed 7 months ago
According to the manual, SWIG should generate identical wrappers for Node.js native and WASM.
Currently, WASM requires -D__EMSCRIPTEN__ because some typemaps expand __EMSCRIPTEN__ during the generation and not the compilation.
-D__EMSCRIPTEN__
__EMSCRIPTEN__
As a consequence, with 5.0.2, and unless -D__EMSCRIPTEN__ is specified, (void **arraybuffer_data, size_t *arraybuffer_len) does not copy the data when compiling to WASM
(void **arraybuffer_data, size_t *arraybuffer_len)
According to the manual, SWIG should generate identical wrappers for Node.js native and WASM.
Currently, WASM requires
-D__EMSCRIPTEN__
because some typemaps expand__EMSCRIPTEN__
during the generation and not the compilation.