On Tuesday, 13 September 2022 at 06:04:49 UTC, test123 wrote:
I can not use importC, I need it to be work in D code.
```d
typedef struct {
uint32_t mask_limit; // Limit enum value that can be tested
with mask.
uint32_t value_count; // Number of values after the bitfield.
uint32_t data[]; // Bitmask + enumerated values follow.
} upb_MiniTable_Enum;
```
I am not sure how to define the `__gshared const
upb_MiniTable_Enum` object for this struct.
struct mystruct {
uint32_t mask_limit; // Limit enum value that can be
tested with mask.
uint32_t value_count; // Number of values after the
bitfield.
uint32_t[] data; // Bitmask + enumerated values
follow.
} __gshared mystruct upb_MiniTable_Enum;