mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Use noreturn attribute and __declspec version.
This commit is contained in:
		
							parent
							
								
									16044c74bf
								
							
						
					
					
						commit
						11f5fdccdf
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -53,10 +53,10 @@ Revision History:
 | 
			
		|||
#pragma warning(disable : 4355)
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef __GNUC__
 | 
			
		||||
#  define Z3_NORETURN __attribute__((noreturn))
 | 
			
		||||
#ifdef _MSC_VER
 | 
			
		||||
#  define Z3_NORETURN __declspec(noreturn)
 | 
			
		||||
#else
 | 
			
		||||
#  define Z3_NORETURN
 | 
			
		||||
#  define Z3_NORETURN [[noreturn]]
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
class ast;
 | 
			
		||||
| 
						 | 
				
			
			@ -1521,7 +1521,7 @@ public:
 | 
			
		|||
    void compress_ids();
 | 
			
		||||
 | 
			
		||||
    // Equivalent to throw ast_exception(msg)
 | 
			
		||||
    void raise_exception(char const * msg) Z3_NORETURN;
 | 
			
		||||
    Z3_NORETURN void raise_exception(char const * msg);
 | 
			
		||||
 | 
			
		||||
    bool is_format_manager() const { return m_format_manager == 0; }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue