diff options
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"); } |