@brief Aborts application due with user-defined status
| 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 |
no outgoing calls
no test coverage detected