File indexing completed on 2025-01-18 09:54:05
0001
0002
0003
0004
0005
0006
0007
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 }
0041
0042 #endif