Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::signal is an STL function to set a function to respond to system signals.
In the example below, an assert is set to fail, causing std::abort, which emits the abort signal ('SIGABRT'). With std::signal onAbort is set to handle this.
#include <cassert> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.