|  | OpenMS
    2.6.0
    | 
 
 
  
  
 
Go to the documentation of this file.
   38 #include <OpenMS/config.h> 
   50 #define STRINGIFY(a) #a 
   57 #ifdef OPENMS_COMPILER_MSVC 
   58 #define OPENMS_THREAD_CRITICAL(name) \ 
   59     __pragma(omp critical (name)) 
   61 #define OPENMS_THREAD_CRITICAL(name) \ 
   62     _Pragma( STRINGIFY( omp critical (name) ) ) 
   67 #define OPENMS_THREAD_CRITICAL(name)  
   89 #ifdef OPENMS_ASSERTIONS 
   96 #define OPENMS_PRECONDITION(condition, message) \ 
   99     Exception::Precondition e(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, # condition); \ 
  100     if (std::strcmp(message, "") != 0) \ 
  102       ::std::string tmp(e.getMessage()); \ 
  104       tmp += ::std::string(message); \ 
  115 #define OPENMS_POSTCONDITION(condition, message) \ 
  118     Exception::Postcondition e(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, # condition); \ 
  119     if (std::strcmp(message, "") != 0) \ 
  121       std::string tmp(e.getMessage()); \ 
  123       tmp += std::string(message); \ 
  136 #define OPENMS_PRECONDITION(condition, message) 
  143 #define OPENMS_POSTCONDITION(condition, message)