Show
Ignore:
Timestamp:
05/28/10 22:50:46 (14 years ago)
Author:
smidl
Message:

DEBUG macro for conditional output + new class

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/bdmerror.h

    r766 r1020  
    4848#endif // if defined(NDEBUG) 
    4949 
     50#if defined(NDEBUG) 
     51//! DO argument if in DEBUG model 
     52#define DEBUG(command) ((void) 0) 
     53#else 
     54//! DO argument if in DEBUG model 
     55#define DEBUG(command) command 
     56#endif // if defined(NDEBUG) 
     57 
    5058//! Unconditionally throw std::runtime_error 
    5159#define bdm_error(s) \