<div dir="ltr">Hi folks,<div><br></div><div>I'm trying to define a wrapper (in cuis) of the following C struct:</div><div><br></div><div><font face="monospace">typedef struct InteropData {<br>    uint64_t dataType;<br>    union {<br>        double quad;</font></div><div><font face="monospace">        int32_t int32;<br>        uint32_t uint32;<br>        int64_t int64;<br>        uint64_t uint64;<br>        char16_t *wstr;<br>        void *ptr;<br>    };<br>      } InteropData;  // size 24</font></div><div><br></div><div>for now I made an ExternalStructure subclass with the following method:</div><div><br></div><div>InteropData class >> #fields<br>    "<br>    self defineFields<br>    "<br>    ^#(<br>        (dataType     'uint64')</div><div>        (payload    'uint64')<br>    )</div><div><br></div><div>As you can see, the payload is a bag of cats, and I wonder if there's a way to specify the union fields so that they get generated automatically.</div><div><br></div><div>Cheers,</div><div>Javier </div><div><br></div></div>