I'm trying to get one function to return 2 type different values to JavaScript with embind. A string or a number, does anyone have any example code?
For further actions, you may consider blocking this person and/or reporting abuse
I'm trying to get one function to return 2 type different values to JavaScript with embind. A string or a number, does anyone have any example code?
For further actions, you may consider blocking this person and/or reporting abuse
DevCycle is the first feature flag platform with OpenFeature built-in to every open source SDK, designed to help developers ship faster while avoiding vendor-lock in.
Top comments (1)
So, heres what I have learned.
I don't need to overload, using embind, you can do this.
Contrary to what I believed to be true, you can use
val
for all sorts of things but most importantly, return JavaScript objects.