Loading...
Searching...
No Matches
Go to the documentation of this file.
12#include <OpenMS/config.h>
21#define STRINGIFY(a) #a
28#ifdef OPENMS_COMPILER_MSVC
29#define OPENMS_THREAD_CRITICAL(name) \
30 __pragma(omp critical (name))
32#define OPENMS_THREAD_CRITICAL(name) \
33 _Pragma( STRINGIFY( omp critical (name) ) )
38#define OPENMS_THREAD_CRITICAL(name)
60#ifdef OPENMS_ASSERTIONS
67#define OPENMS_PRECONDITION(condition, message) \
70 throw Exception::Precondition(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, # condition " " # message); \
78#define OPENMS_POSTCONDITION(condition, message) \
81 throw Exception::Postcondition(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, # condition " " # message); \
91#define OPENMS_PRECONDITION(condition, message)
98#define OPENMS_POSTCONDITION(condition, message)