mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
Add the full source of BambuStudio
using version 1.0.10
This commit is contained in:
parent
30bcadab3e
commit
1555904bef
3771 changed files with 1251328 additions and 0 deletions
20
src/libslic3r/TryCatchSignal.hpp
Normal file
20
src/libslic3r/TryCatchSignal.hpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#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*/)
|
||||
{
|
||||
fn();
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // TRY_CATCH_SIGNAL_HPP
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue