3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-04 22:35:45 +00:00

Unbreak Z3 C++ API exception support for GCC < 5.0. This was broken

by 0b1d564509 .

Older versions of GCC do not define `__cpp_exceptions` which caused
exceptions to not be raised leading to unexpected failures. To fix
this also check the `__EXCEPTIONS` macro which is used by older GCC
versions.

Also `#undef` the `Z3_THROW` macro at the end of the header file
because this is an implementation detail that we don't want to leak
to clients.
This commit is contained in:
Dan Liew 2017-06-25 22:57:13 +01:00
parent 2fceac04d4
commit 42e0f8f9ce