OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
TryCatchSignal.hpp File Reference
#include <csignal>
Include dependency graph for TryCatchSignal.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using SignalT = decltype (SIGSEGV)

Functions

template<class TryFn, class CatchFn, int N>
void try_catch_signal (const SignalT(&)[N], TryFn &&fn, CatchFn &&)

Typedef Documentation

◆ SignalT

using SignalT = decltype (SIGSEGV)

Function Documentation

◆ try_catch_signal()

template<class TryFn, class CatchFn, int N>
void try_catch_signal ( const SignalT(&)[N],
TryFn && fn,
CatchFn &&  )
14{
15 fn();
16}