Back to home page

EIC code displayed by LXR

 
 

    


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

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_VERSION_HPP_INCLUDED
0009 #define CATCH_VERSION_HPP_INCLUDED
0010 
0011 #include <iosfwd>
0012 
0013 namespace Catch {
0014 
0015     // Versioning information
0016     struct Version {
0017         Version( Version const& ) = delete;
0018         Version& operator=( Version const& ) = delete;
0019         Version(    unsigned int _majorVersion,
0020                     unsigned int _minorVersion,
0021                     unsigned int _patchNumber,
0022                     char const * const _branchName,
0023                     unsigned int _buildNumber );
0024 
0025         unsigned int const majorVersion;
0026         unsigned int const minorVersion;
0027         unsigned int const patchNumber;
0028 
0029         // buildNumber is only used if branchName is not null
0030         char const * const branchName;
0031         unsigned int const buildNumber;
0032 
0033         friend std::ostream& operator << ( std::ostream& os, Version const& version );
0034     };
0035 
0036     Version const& libraryVersion();
0037 }
0038 
0039 #endif // CATCH_VERSION_HPP_INCLUDED