emscripten-core / emscripten-core/emscripten

Allow user to pass integer into embind exported function taking pointer

Open
#21,872 1 comment 0 reactions 1 assignee Claimed by @brendandahl View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.