Class which intercepts SIGSEGV signals caused in a callback lambda function and recovers from it. Useful in unit testing where a SIGSEGV is expected to happen.
More...
#include <SegmentFaultHandler.h>
Class which intercepts SIGSEGV signals caused in a callback lambda function and recovers from it. Useful in unit testing where a SIGSEGV is expected to happen.
◆ SegmentFaultHandler()
sf::SegmentFaultHandler::SegmentFaultHandler |
( |
const std::function< void()> & |
cb | ) |
|
|
explicit |
Default constructor.
- Parameters
-
◆ ~SegmentFaultHandler()
sf::SegmentFaultHandler::~SegmentFaultHandler |
( |
| ) |
|
◆ operator bool()
sf::SegmentFaultHandler::operator bool |
( |
| ) |
const |
|
explicit |
When no SIGSEGV was triggered it returns true.
The documentation for this class was generated from the following file: