/ externals / catch / src / catch2 / internal / catch_message_info.cpp
catch_message_info.cpp
 1  
 2  //              Copyright Catch2 Authors
 3  // Distributed under the Boost Software License, Version 1.0.
 4  //   (See accompanying file LICENSE.txt or copy at
 5  //        https://www.boost.org/LICENSE_1_0.txt)
 6  
 7  // SPDX-License-Identifier: BSL-1.0
 8  
 9  #include <catch2/internal/catch_message_info.hpp>
10  
11  namespace Catch {
12  
13      MessageInfo::MessageInfo(   StringRef _macroName,
14                                  SourceLineInfo const& _lineInfo,
15                                  ResultWas::OfType _type )
16      :   macroName( _macroName ),
17          lineInfo( _lineInfo ),
18          type( _type ),
19          sequence( ++globalCount )
20      {}
21  
22      // This may need protecting if threading support is added
23      unsigned int MessageInfo::globalCount = 0;
24  
25  } // end namespace Catch