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

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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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.13-caa5.
Corresponding source code