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, |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In C, it's
typedef struct _user_data UserData. What is the equivalent syntax in Adept? Isstruct UserData ()valid?All reactions