3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-14 12:58:44 +00:00

Merge pull request #1436 from waywardmonkeys/noreturn-attribute

Use noreturn attribute and __declspec version.
This commit is contained in:
Nikolaj Bjorner 2018-01-02 10:38:59 -08:00 committed by GitHub
commit ad15b75dc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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; }