[Tinyos-devel] Fwd: Annotate constants inside an enum with attribute in nesc

David Gay dgay42 at gmail.com
Fri Apr 10 14:54:43 PDT 2009


On Fri, Apr 10, 2009 at 9:31 AM, Rodrigo Fonseca
<rfonseca at cs.berkeley.edu> wrote:
> Any ideas? Am I missing something? Is this not possible?

It's not possible - the syntax would have to be changed (basically
attributes are allowed where gcc allowed __attribute__, plus a few
places I added like modules/configurations - enum constants weren't
one of those). If you make a good enough argument for it, it could be
added for 1.3.1 ;-) (and it might make sense to figure out if there's
other places that might want them added)

David


More information about the Tinyos-devel mailing list