Generating for WASM should not require `-D__EMSCRIPTEN__`
Closed this issue · 1 comments
mmomtchev commented
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.
mmomtchev commented
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