12345678910111213141516171819202122232425262728 |
- #include "catch_startup_exception_registry.h"
- #include "catch_compiler_capabilities.h"
- #if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)
- namespace Catch {
- void StartupExceptionRegistry::add( std::exception_ptr const& exception ) noexcept {
- CATCH_TRY {
- m_exceptions.push_back(exception);
- } CATCH_CATCH_ALL {
-
- std::terminate();
- }
- }
- std::vector<std::exception_ptr> const& StartupExceptionRegistry::getExceptions() const noexcept {
- return m_exceptions;
- }
- }
- #endif
|