diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-07 10:56:25 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-07 10:56:25 +0100 |
commit | 87ae4d186ad64531e96fd3e121112f2787894295 (patch) | |
tree | 7e6efdf1cc66f63a9db0f1625e2d3e98647032e3 /src/crepe/facade/SignalCatch.cpp | |
parent | aa2d2e05bc90b90ab503eff1f58bfc8c2b9c1741 (diff) |
revert signalcatch
Diffstat (limited to 'src/crepe/facade/SignalCatch.cpp')
-rw-r--r-- | src/crepe/facade/SignalCatch.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/crepe/facade/SignalCatch.cpp b/src/crepe/facade/SignalCatch.cpp deleted file mode 100644 index 4988047..0000000 --- a/src/crepe/facade/SignalCatch.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include <stdexcept> - -#include "SignalCatch.h" - -using namespace crepe; -using namespace std; - -SignalCatch::SignalCatch() { - segvcatch::init_segv(&SignalCatch::segv); - segvcatch::init_fpe(&SignalCatch::fpe); -} - -SignalCatch::~SignalCatch() { - segvcatch::init_segv(); - segvcatch::init_fpe(); -} - -void SignalCatch::segv() { throw runtime_error("segmentation fault"); } - -void SignalCatch::fpe() { throw domain_error("floating point exception"); } |