MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / setCrashHandler

Method setCrashHandler

include/thundersvm/util/log.h:3714–3716  ·  view source on GitHub ↗

@brief Overrides default crash handler and installs custom handler. @param crashHandler A functor with no return type that takes single int argument. Handler is a typedef with specification: void (*Handler)(int)

Source from the content-addressed store, hash-verified

3712 /// @param crashHandler A functor with no return type that takes single int argument.
3713 /// Handler is a typedef with specification: void (*Handler)(int)
3714 static inline void setCrashHandler(const el::base::debug::CrashHandler::Handler& crashHandler) {
3715 el::elCrashHandler.setHandler(crashHandler);
3716 }
3717 /// @brief Abort due to crash with signal in parameter
3718 /// @param sig Crash signal
3719 static void crashAbort(int sig, const char* sourceFile = "", unsigned int long line = 0);

Callers

nothing calls this directly

Calls 1

setHandlerMethod · 0.80

Tested by

no test coverage detected