All: Reformat according to new standard
This commit is contained in:
committed by
Kacper Donat
parent
eafd18dac0
commit
25c3ba7338
@@ -590,9 +590,9 @@ PyObject* RestoreError::getPyExceptionType() const
|
||||
// ---------------------------------------------------------
|
||||
|
||||
#if defined(__GNUC__) && defined(FC_OS_LINUX)
|
||||
#include <stdexcept>
|
||||
#include <iostream>
|
||||
#include <csignal>
|
||||
# include <stdexcept>
|
||||
# include <iostream>
|
||||
# include <csignal>
|
||||
|
||||
SignalException::SignalException()
|
||||
{
|
||||
@@ -601,17 +601,17 @@ SignalException::SignalException()
|
||||
sigemptyset(&new_action.sa_mask);
|
||||
new_action.sa_flags = 0;
|
||||
ok = (sigaction(SIGSEGV, &new_action, &old_action) < 0);
|
||||
#ifdef _DEBUG
|
||||
# ifdef _DEBUG
|
||||
std::cout << "Set new signal handler" << std::endl;
|
||||
#endif
|
||||
# endif
|
||||
}
|
||||
|
||||
SignalException::~SignalException()
|
||||
{
|
||||
sigaction(SIGSEGV, &old_action, nullptr);
|
||||
#ifdef _DEBUG
|
||||
# ifdef _DEBUG
|
||||
std::cout << "Restore old signal handler" << std::endl;
|
||||
#endif
|
||||
# endif
|
||||
}
|
||||
|
||||
void SignalException::throw_signal(const int signum)
|
||||
|
||||
Reference in New Issue
Block a user