Looks like the real underlying problem is that there is no typed array 
support for 64 bit integral 
types: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays 
- Emscripten hence doesn't have a typed array view for 64 bit integral 
types. There is hence no corresponding Embind type registration for such 
types.

As a workaround for now, I'll be using C++ to generate a JS object with the 
64 bit types and then expose a bound function that will give me access to 
the JS object. But I'm curious as to whether other people have hit this 
problem.

On Wednesday, March 9, 2016 at 6:14:59 PM UTC-8, arnab choudhury wrote:
>
> It looks like _embind_register_float may do the trick - although I wonder 
> if I can use that for 64 bit integral types (e.g. unsigned long long).
>
> On Wednesday, March 9, 2016 at 5:57:04 PM UTC-8, arnab choudhury wrote:
>>
>> Hey guys
>>
>> Embind doesn't seem to have implicit registrations for native C++ types 
>> that are 64 bits (e.g. unsigned long long). Anyone else run into this? I 
>> could call _embind_register_integer, but that ends up truncating the 
>> maximum range of the type. Is there any known workaround for this?
>>
>> Thanks,
>> Arnab
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to