bugAVR C Runtime Library - Bugs: bug #9013, Macroses as a program block.

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9013: Macroses as a program block.

Submitter:  None
Submitted:  Wed 19 May 2004 09:33:44 PM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Percent Complete:  0% Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
Fixed Release:  None

Discussion

Thu 22 Jul 2004 09:45:44 PM UTC, comment #1: 

Appropriate do { ... } while (0) protection has been added
to avr/sleep.h, and avr/ina90.h.bugs #9013] Macroses as a program block.

Joerg Wunsch <joerg_wunsch>
Group administrator
Wed 19 May 2004 09:33:44 PM UTC, 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'.

Anonymous

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

History

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-07-22 joerg_wunsch StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.16-ed84.
Corresponding source code