[Issue 21969] importC: Error: bit fields are not supported

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 25 16:07:35 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21969

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Iain Buclaw from comment #0)
> The above can be translated into the following D representation without
> compromising ABI.
> ---
> struct bitfieldsA
> {
>   int start;
>   ushort __bitfield_padding_0;
>   int end;
> }
> 
If we need to expose the original names of the bit-fields, then @property
functions and bitmasks will also suffice.

--


More information about the Digitalmars-d-bugs mailing list