avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bugs #9013] Macroses as a program block.


From: anonymous
Subject: [avr-libc-dev] [bugs #9013] Macroses as a program block.
Date: Wed, 19 May 2004 17:54:16 -0400
User-agent:

This mail is an automated notification from the bugs tracker
 of the project: AVR C Runtime Library.




/**************************************************************************/
[bugs #9013] Full Item Snapshot:

URL: <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=9013>
Project: AVR C Runtime Library
Submitted by: 0
On: Wed 05/19/04 at 17:33

Category:  Header
Severity:  5 - Average
Item Group:  None
Resolution:  None
Assigned to:  None
Originator Email:  address@hidden
Status:  Open


Summary:  Macroses as a program block.

Original Submission:  This remark conserns a few function-like macroses, that 
are defined as:

    #define foo() { ... }

This macroses are in files `sleep.h' and `ina90.h' .
Such definition produced an error, for example:

    if (flag) foo(); else ...           /* `;' is invalid       */

It would be better `do { ... } while (0)' or `static inline'.












For detailed info, follow this link:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=9013>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]