diff options
| author | Phil Nash | 2015-06-29 18:05:23 +0100 |
|---|---|---|
| committer | Phil Nash | 2015-06-29 18:06:15 +0100 |
| commit | 21f7ef6fdcfcc98fa668028c02ba51643982e7cf (patch) | |
| tree | bdf6b9ca32777405feeefa8a6f5e34481fe6f468 /include/internal/catch_version.hpp | |
| parent | f5fef1ebed9faaf12058d7a16223b4f617e6a5b6 (diff) | |
| download | catch3-1.2.0.tar.gz | |
Committed to semantic versioningv1.2.0
as prompted by #365, #430, #447 and a thread on the google group.
- split version bumping out of generateSingleHeader script
- separate scripts for bumping each version component
- "build" number only incremented for "develop" builds
Diffstat (limited to 'include/internal/catch_version.hpp')
| -rw-r--r-- | include/internal/catch_version.hpp | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/include/internal/catch_version.hpp b/include/internal/catch_version.hpp index 4a830532..90f4a151 100644 --- a/include/internal/catch_version.hpp +++ b/include/internal/catch_version.hpp @@ -12,8 +12,33 @@ namespace Catch { - // These numbers are maintained by a script - Version libraryVersion( 1, 1, 3, "master" ); + Version::Version + ( unsigned int _majorVersion, + unsigned int _minorVersion, + unsigned int _patchNumber, + std::string const& _branchName, + unsigned int _buildNumber ) + : majorVersion( _majorVersion ), + minorVersion( _minorVersion ), + patchNumber( _patchNumber ), + branchName( _branchName ), + buildNumber( _buildNumber ) + {} + + std::ostream& operator << ( std::ostream& os, Version const& version ) { + os << version.majorVersion << "." + << version.minorVersion << "." + << version.patchNumber; + + if( !version.branchName.empty() ) { + os << "-" << version.branchName + << "." << version.buildNumber; + } + return os; + } + + Version libraryVersion( 1, 2, 0, "", 0 ); + } #endif // TWOBLUECUBES_CATCH_VERSION_HPP_INCLUDED |