|
OpenMS
2.8.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 throw Exception::Precondition(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, # condition " " # message); \
107 #define OPENMS_POSTCONDITION(condition, message) \
110 throw Exception::Postcondition(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, # condition " " # message); \
120 #define OPENMS_PRECONDITION(condition, message)
127 #define OPENMS_POSTCONDITION(condition, message)