Back to home page

EIC code displayed by LXR

 
 

    


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

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_MESSAGE_INFO_HPP_INCLUDED
0009 #define CATCH_MESSAGE_INFO_HPP_INCLUDED
0010 
0011 #include <catch2/internal/catch_result_type.hpp>
0012 #include <catch2/internal/catch_source_line_info.hpp>
0013 #include <catch2/internal/catch_stringref.hpp>
0014 
0015 #include <string>
0016 
0017 namespace Catch {
0018 
0019     struct MessageInfo {
0020         MessageInfo(    StringRef _macroName,
0021                         SourceLineInfo const& _lineInfo,
0022                         ResultWas::OfType _type );
0023 
0024         StringRef macroName;
0025         std::string message;
0026         SourceLineInfo lineInfo;
0027         ResultWas::OfType type;
0028         unsigned int sequence;
0029 
0030         bool operator == (MessageInfo const& other) const {
0031             return sequence == other.sequence;
0032         }
0033         bool operator < (MessageInfo const& other) const {
0034             return sequence < other.sequence;
0035         }
0036     private:
0037         static unsigned int globalCount;
0038     };
0039 
0040 } // end namespace Catch
0041 
0042 #endif // CATCH_MESSAGE_INFO_HPP_INCLUDED