Hi all, I'm looking for a way to reference fields in cascaded C structures. for example: enum { PEER_ENABLED, PEER_DISABLED }; typedef struct { int status; int flags; } MY_PEER; typedef struct { MY_PEER peer; int more_info; ///< Only valid if ::MY_STATUS::peer::status is ::PEER_ENABLED } MY_STATUS; returns an error: explicit link request to 'MY_STATUS::peer::status' could not be resolved Any hints how this could be solved? Thanks, Martin
OK, found a solution. Just for the records: if I give local names to the embedded...
Luis, thanks for your ideas. The approach with using an alias sounds interesting...
Hi folks, I'm actually putting lots of doxygen comments to some standard C header...