Show
Ignore:
Timestamp:
03/13/09 16:44:02 (15 years ago)
Author:
bhilburn
Message:

Fixed a potential bug that would have occured if parenthesis were not included
around conditional ERRORs, LOGs, etc.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vtcross/branches/bhilburn/src/include/vtcross/debug.h

    r146 r159  
    1616 
    1717#define DEBUG(...) \ 
    18     if(VTCROSS_DEBUG) \ 
    19         fprintf(stderr, __VA_ARGS__); 
     18    if(VTCROSS_DEBUG) {\ 
     19        fprintf(stderr, __VA_ARGS__);\ 
     20    } 
    2021 
    21 #define LOG(...) \ 
    22     fprintf(stdout, __VA_ARGS__); 
     22#define LOG(...) fprintf(stdout, __VA_ARGS__) 
    2323 
    2424#endif