SomeRanDev / reflaxe.CPP

An alternative C++ target for Haxe that generates dependent-less, GC-less C++17 code.
MIT License
72 stars 5 forks source link

Single Type is not supported #6

Closed onehundredfeet closed 1 year ago

onehundredfeet commented 1 year ago

Type not found : Single

Single should be a 32-bit floating point number.

onehundredfeet commented 1 year ago

Wait. It might be me.

onehundredfeet commented 1 year ago

Nope, it seems to not be supported broadly.

To try to fix it, I used

typedef Single=ucpp.num.Float32;

but it seems to lack a lot of the auto type conversion / comparison that the default types have.

SomeRanDev commented 1 year ago

Yeahhh, there's still some API types I'm missing here and there (^_^;)

Thanks for the feedback, and I'll fix this as soon as I can!

SomeRanDev commented 1 year ago

Ahhhh, I was confused cause I already had Single handled, but as it turns out, the Haxe API uses conditional compilation around Single so it doesn't appear on custom targets. I'll have to make a pr, but in meantime this should work. 👌