Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:06

0001 
0002 //              Copyright Catch2 Authors
0003 // Distributed under the Boost Software License, Version 1.0.
0004 //   (See accompanying file LICENSE.txt or copy at
0005 //        https://www.boost.org/LICENSE_1_0.txt)
0006 
0007 // SPDX-License-Identifier: BSL-1.0
0008 #ifndef CATCH_STARTUP_EXCEPTION_REGISTRY_HPP_INCLUDED
0009 #define CATCH_STARTUP_EXCEPTION_REGISTRY_HPP_INCLUDED
0010 
0011 
0012 #include <vector>
0013 #include <exception>
0014 
0015 namespace Catch {
0016 
0017     class StartupExceptionRegistry {
0018 #if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)
0019     public:
0020         void add(std::exception_ptr const& exception) noexcept;
0021         std::vector<std::exception_ptr> const& getExceptions() const noexcept;
0022     private:
0023         std::vector<std::exception_ptr> m_exceptions;
0024 #endif
0025     };
0026 
0027 } // end namespace Catch
0028 
0029 #endif // CATCH_STARTUP_EXCEPTION_REGISTRY_HPP_INCLUDED