- sanitized exit code a bit
Instead of trying a homegrown way to avoid recursive exceptions, let's do it with the defined procedure C++ has for this case: call std::terminate. This allowed removing some old hackery inherited from Boom and will now hopefully allow sanitizing the exit procedure to the point that it can be done without depending on exit handlers.
This commit is contained in:
parent
ff40bcd178
commit
338ae15a4c
9 changed files with 21 additions and 124 deletions
|
|
@ -63,7 +63,7 @@ void DecompressorBase::DecompressionError(const char *error, ...) const
|
|||
va_end(argptr);
|
||||
|
||||
if (ErrorCallback != nullptr) ErrorCallback(errortext);
|
||||
else std::terminate();
|
||||
else throw std::runtime_error(errortext);
|
||||
}
|
||||
|
||||
long DecompressorBase::Tell () const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue