]> OCCT Git - occt-copy.git/commit
Added building option OCCT_DEBUG_SANITIZE_EXCEPTIONS for performing expensive checks
authorkgv <kgv@opencascade.com>
Fri, 15 Mar 2019 10:16:06 +0000 (13:16 +0300)
committerkgv <kgv@opencascade.com>
Sun, 24 Mar 2019 07:32:04 +0000 (10:32 +0300)
commitd470d177913bb3cb5530c9ae38ed56d7c13bb44b
tree0e4fc5bda9ecff9178d2a15d01a0e9d676f30fc9
parentc30cf52f775f089e9a95e0f161f10acd46eb24a1
Added building option OCCT_DEBUG_SANITIZE_EXCEPTIONS for performing expensive checks

When this option is ON, opencascade::handle throws std::runtime_error() on NULL pointer dereference,
and Standard_OutOfRange_Raise_if throws std::runtime_error() instead of Standard_OutOfRange
to detect cases when broken code remains hidden by exception handling.
CMakeLists.txt
adm/cmake/vardescr.cmake
src/OSD/OSD_signal.cxx
src/Standard/Standard_Handle.hxx
src/Standard/Standard_OutOfRange.hxx