emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

Allow user to pass integer into embind exported function taking pointer

Open msqr1 opened this issue 1 year ago • 1 comments

Because pointers are just int or long in memory64. User would normally expect result from malloc being passed straight in without a problem, but turns out, currently, they will need to change to make their function taking an int and reinterpret_cast it to a pointer to be able to use it. An embind signature mismatch error will pop up if that wasn't done.

msqr1 avatar May 01 '24 04:05 msqr1