#include <catch_fatal_condition.h>
Definition at line 42 of file catch_fatal_condition.h.
◆ FatalConditionHandler()
Catch::FatalConditionHandler::FatalConditionHandler |
( |
| ) |
|
Definition at line 125 of file catch_fatal_condition.cpp.
125 {
127 stack_t sigStack;
129 sigStack.ss_size = sigStackSize;
130 sigStack.ss_flags = 0;
132 struct sigaction sa = { };
133
135 sa.sa_flags = SA_ONSTACK;
136 for (std::size_t i = 0; i < sizeof(signalDefs)/sizeof(SignalDefs); ++i) {
138 }
139 }
static stack_t oldSigStack
static void handleSignal(int sig)
static char altStackMem[]
static struct sigaction oldSigActions[]
◆ ~FatalConditionHandler()
Catch::FatalConditionHandler::~FatalConditionHandler |
( |
| ) |
|
◆ handleSignal()
void Catch::FatalConditionHandler::handleSignal |
( |
int | sig | ) |
|
|
static |
Definition at line 112 of file catch_fatal_condition.cpp.
112 {
113 char const *
name =
"<unknown signal>";
114 for (auto const& def : signalDefs) {
115 if (sig == def.id) {
117 break;
118 }
119 }
122 raise( sig );
123 }
◆ reset()
void Catch::FatalConditionHandler::reset |
( |
| ) |
|
|
static |
Definition at line 146 of file catch_fatal_condition.cpp.
146 {
148
149 for( std::size_t i = 0; i < sizeof(signalDefs)/sizeof(SignalDefs); ++i ) {
151 }
152
155 }
156 }
◆ altStackMem
char Catch::FatalConditionHandler::altStackMem = {} |
|
static |
◆ isSet
bool Catch::FatalConditionHandler::isSet = false |
|
static |
◆ oldSigActions
struct sigaction Catch::FatalConditionHandler::oldSigActions = {} |
|
static |
◆ oldSigStack
stack_t Catch::FatalConditionHandler::oldSigStack = {} |
|
static |
The documentation for this struct was generated from the following files: