mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 19:52:29 +00:00 
			
		
		
		
	use C99 pragma
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									78b9f0686a
								
							
						
					
					
						commit
						812c913cdd
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue