blob: 4562215f66cfd4aafbad5929d89ec7510573e773 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include <segvcatch.h>
namespace crepe {
class SignalCatch {
public:
SignalCatch();
~SignalCatch();
private:
static void segv();
static void fpe();
public:
SignalCatch(const SignalCatch &) = delete;
SignalCatch(SignalCatch &&) = delete;
SignalCatch & operator=(const SignalCatch &) = delete;
SignalCatch & operator=(SignalCatch &&) = delete;
};
}
|