Re: [Doxygen-users] structures with attributes
Brought to you by:
dimitri
From: Richard D. <Ri...@Da...> - 2014-01-09 12:51:23
|
On 1/9/14, 7:07 AM, Thomas Nemeth wrote: > > Hi. > > I'm documenting some structures that looks like this : > > /*! Dataset for status data. */ > typedef struct __attribute__ ((__packed__)) { > UINT16 outputs; /*!< Board outputs. */ > UINT32 inputs; /*!< Board inputs. */ > UINT16 status; /*!< Board status. */ > UINT16 errors; /*!< Internal errors (bits field). */ > } dataset_status; > > What i do for situations like this (I don't know if it is the best) is in the Doxygen config file predefine the "macro" __attribute__() to expand to nothing. This removes the attribute keyword clause, making the code look like standard C, and Doxygen can processes it. -- Richard Damon |