aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SignalCatch.h
blob: cf86b5674f835fd60dcd41bd9d4c2d49df6aa768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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;
};

} // namespace crepe