Should we add a Bool type that corresponds to the Dart bool?
How should it behave when passed to C?
/cc @sjindel-google @mraleph
Since C99, the C language has a bool type which we might want to support in
dart:ffi.
/cc @mkustermann
Any updates in this?
There is any update on this? Have you any side-way to support c99 bool return types while we wait for this feature to be implemented?
Not yet. You can work around it with Int8 for now. Does that work for you?
Asking to google, I've found that it could be implemented as a uint8_t in some cases, but for me (gcc on linux) Int8 works like a charm! Thank you for your suggestion and the immediate response!
I hope you're all keeping well and safe
Most helpful comment
Any updates in this?