Re: [Doxygen-users] structures with attributes
Brought to you by:
dimitri
From: Thomas N. <nem...@gm...> - 2014-01-09 13:01:02
|
You are right. It's even in the documentation in the "Preprocessing" section. 2014/1/9 Richard Damon <Ri...@da...> > 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 > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Doxygen-users mailing list > Dox...@li... > https://lists.sourceforge.net/lists/listinfo/doxygen-users > -- | A: Yes. | >Q: Are you sure? | >>A: Because it reverses the logical flow of conversation. | >>>Q: Why is top posting frowned upon? |