2021-06-17 13:04:47 +00:00
|
|
|
#ifndef TRY_CATCH_SIGNAL_HPP
|
|
|
|
#define TRY_CATCH_SIGNAL_HPP
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#include "TryCatchSignalSEH.hpp"
|
|
|
|
#else
|
2021-06-17 20:21:34 +00:00
|
|
|
|
|
|
|
#include <csignal>
|
|
|
|
|
|
|
|
using SignalT = decltype (SIGSEGV);
|
|
|
|
|
2021-06-17 13:04:47 +00:00
|
|
|
template<class TryFn, class CatchFn, int N>
|
|
|
|
void try_catch_signal(const SignalT (&/*sigs*/)[N], TryFn &&/*fn*/, CatchFn &&/*cfn*/)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // TRY_CATCH_SIGNAL_HPP
|
|
|
|
|