#416·wasm3

Unable to pass "userdata" to C++ API `module::link`

Author: hzyCreated Dec 25, 2022Updated Dec 25, 2022

Currently, users of the C++ API cannot pass

  1. a callable object
  2. or a combination of C function pointer and its associated userdata

to the module::link method.

This makes implementing some features difficult, like linking a function with state.

Expected behavior:

There are some way for users of C++ API to link a function with associated userdata.