I have a c function:
    
    
    N_LIB_EXPORT N_CDECL(NCSTRING, add_nfunc)(NCSTRING* nfuncsX60flatArgs__p0, 
NI nfuncsX60flatArgs__p0Len_0);
    
    
    Run

That is compiled to wasm successfully. I also am pretty sure I have the 
`loadWasmEnv` and `findFunction` part down. The thing I can’t wrap my head 
around is how to call it. `NCSTRING` Conforms to none of the wasm int types 
provided, and I have no clue how to get the cstring response. Passing the 
arguments might be easier, as is a pointer and an int, both are provided by the 
wasm3 lib as valid types, but I still dk. If this can’t be done in WASM3 and 
you can recommend a better wasm running lib, I am happy to switch.

Failed:
    
    
    r.f.call(WasmPtr, pass)
    
    
    Run

**TLDR:** How to call `add_nfunc` from the c code above (compiled to wasm) in 
wasm3 library.

Lib link: <https://github.com/beef331/wasm3>

Reply via email to