Loading...
Searching...
No Matches
Go to the documentation of this file.
12#include <OpenMS/config.h>
24#define STRINGIFY(a) #a
31#ifdef OPENMS_COMPILER_MSVC
32#define OPENMS_THREAD_CRITICAL(name) \
33 __pragma(omp critical (name))
35#define OPENMS_THREAD_CRITICAL(name) \
36 _Pragma( STRINGIFY( omp critical (name) ) )
41#define OPENMS_THREAD_CRITICAL(name)
63#ifdef OPENMS_ASSERTIONS
70#define OPENMS_PRECONDITION(condition, message) \
73 throw Exception::Precondition(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, # condition " " # message); \
81#define OPENMS_POSTCONDITION(condition, message) \
84 throw Exception::Postcondition(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, # condition " " # message); \
94#define OPENMS_PRECONDITION(condition, message)
101#define OPENMS_POSTCONDITION(condition, message)