Skip to main content
4 events
when toggle format what by license comment
Apr 4, 2017 at 20:58 history edited user2823000 CC BY-SA 3.0
added 71 characters in body
Apr 4, 2017 at 20:58 comment added user2823000 The whole principle of the CONTAINING_RECORD macro is to use negative offset to actually get a reference to the parent structure. See the link I just added to my answer for more details.
Apr 3, 2017 at 14:37 comment added Igor Lebedev So, I can create a subtype and pass its pointer to the function. But in this case, I would need to do some tricks if the functions uses negative offsets. But is it possible to pass a structure field as a function argument? v2 must be declared as a pointer to the corresponding structure field how can this be achieved?
Apr 2, 2017 at 21:47 history answered user2823000 CC BY-SA 3.0