diff options
Diffstat (limited to 'cpp/src/IceUtil/Exception.cpp')
-rw-r--r-- | cpp/src/IceUtil/Exception.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/Exception.cpp b/cpp/src/IceUtil/Exception.cpp index 9a91d33ae3a..cf52e06e6a8 100644 --- a/cpp/src/IceUtil/Exception.cpp +++ b/cpp/src/IceUtil/Exception.cpp @@ -16,6 +16,13 @@ using namespace std; +namespace IceUtil +{ + +bool nullHandleAbort = false; + +}; + IceUtil::Exception::Exception() : _file(0), _line(0) @@ -82,6 +89,10 @@ IceUtil::operator<<(ostream& out, const IceUtil::Exception& ex) IceUtil::NullHandleException::NullHandleException(const char* file, int line) : Exception(file, line) { + if(nullHandleAbort) + { + assert(false); + } } string |