3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 13:28:47 +00:00

Use noreturn attribute and __declspec version.

This commit is contained in:
Bruce Mitchener 2018-01-03 01:02:07 +07:00
parent 16044c74bf
commit 11f5fdccdf

View file

@ -53,10 +53,10 @@ Revision History:
#pragma warning(disable : 4355) #pragma warning(disable : 4355)
#endif #endif
#ifdef __GNUC__ #ifdef _MSC_VER
# define Z3_NORETURN __attribute__((noreturn)) # define Z3_NORETURN __declspec(noreturn)
#else #else
# define Z3_NORETURN # define Z3_NORETURN [[noreturn]]
#endif #endif
class ast; class ast;
@ -1521,7 +1521,7 @@ public:
void compress_ids(); void compress_ids();
// Equivalent to throw ast_exception(msg) // 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; } bool is_format_manager() const { return m_format_manager == 0; }