Replies: 1 comment
-
For opaque structs, you can either have an empty definition which will work as long as you don't need to allocate it from Adept.
Or if you require the ability to allocate space for it without knowing what's inside, you can put dummy data inside of the struct. This is what the definition of the
which says that Most of the time, if you have an opaque struct, you only pass it around by pointer and don't access the fields directly or allocate it directly, so TL;DR For fully opaque structs, |
Beta Was this translation helpful? Give feedback.
-
In C, it's
typedef struct _user_data UserData
. What is the equivalent syntax in Adept? Isstruct UserData ()
valid?Beta Was this translation helpful? Give feedback.
All reactions