3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +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)
#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; }