need help to translate C into D

test123 test123 at gmail.com
Tue Sep 13 06:04:49 UTC 2022


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.




More information about the Digitalmars-d-learn mailing list