PrusaSlicer-NonPlainar/src/libslic3r/TryCatchSignal.hpp
2021-06-17 22:21:34 +02:00

21 lines
359 B
C++

#ifndef TRY_CATCH_SIGNAL_HPP
#define TRY_CATCH_SIGNAL_HPP
#ifdef _MSC_VER
#include "TryCatchSignalSEH.hpp"
#else
#include <csignal>
using SignalT = decltype (SIGSEGV);
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