emscripten-core / emscripten-core/emscripten

Question: How to bind a values of type signed long long?

Open
#16,927 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Hello. I need to get/set values in vector of IntPoint, values type are signed long long. **For int type values everything works as expected**, but I couldn't make it work with signed long long, I got error: `BindingError: _emval_take_value has unknown type N10TestLib8IntPointE`

IntPoint struct:
```
struct IntPoint {
pInt X;
pInt Y;
pInt Z;
IntPoint(pInt x = 0, pInt y = 0, pInt z = 0): X(x), Y(y), Z(z) {};
};
```
pInt typedef:
`typedef signed long long pInt;`

Thanks in advance!

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.