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/error.h

    r148 r159  
    1313#include <cstdio> 
    1414 
    15 #define ERROR(exit_code, ...) \ 
     15#define ERROR(exit_code, ...) { \ 
    1616    fprintf(stderr, __VA_ARGS__); \ 
    17     exit(exit_code); 
     17    exit(exit_code); } 
    1818 
    19 #define WARNING(...) \ 
    20     fprintf(stderr, __VA_ARGS__); 
     19#define WARNING(...) fprintf(stderr, __VA_ARGS__) 
    2120 
    2221#endif