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

Function abort

src/thundersvm/util/log.cpp:30–40  ·  view source on GitHub ↗

@brief Aborts application due with user-defined status

Source from the content-addressed store, hash-verified

28
29/// @brief Aborts application due with user-defined status
30 static void abort(int status, const std::string& reason) {
31 // Both status and reason params are there for debugging with tools like gdb etc
32 ELPP_UNUSED(status);
33 ELPP_UNUSED(reason);
34#if defined(ELPP_COMPILER_MSVC) && defined(_M_IX86) && defined(_DEBUG)
35 // Ignore msvc critical error dialog - break instead (on debug mode)
36 _asm int 3
37#else
38 ::abort();
39#endif // defined(ELPP_COMPILER_MSVC) && defined(_M_IX86) && defined(_DEBUG)
40 }
41
42 } // namespace utils
43 } // namespace base

Callers 3

triggerDispatchMethod · 0.85
crashAbortFunction · 0.85
crashAbortMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected