mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
use C99 pragma
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
78b9f0686a
commit
812c913cdd
|
@ -191,16 +191,22 @@ bool is_threaded();
|
|||
} \
|
||||
} } ((void) 0)
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define DO_PRAGMA(x) __pragma(x)
|
||||
#else
|
||||
#define DO_PRAGMA(x) _Pragma(x)
|
||||
#endif
|
||||
|
||||
#ifdef _NO_OMP_
|
||||
#define LOCK_CODE(CODE) CODE;
|
||||
#else
|
||||
#define LOCK_CODE(CODE) \
|
||||
{ \
|
||||
__pragma(omp critical (verbose_lock)) \
|
||||
DO_PRAGMA(omp critical (verbose_lock)) \
|
||||
{ \
|
||||
CODE; \
|
||||
} \
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
template<typename T>
|
||||
|
|
Loading…
Reference in a new issue