Skip to content

Commit

Permalink
libcore: Version constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Oct 22, 2017
1 parent 630cfbd commit 6b94a09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/sdk/libcore/include/de/core/version.h
Expand Up @@ -56,6 +56,8 @@ class DENG2_PUBLIC Version
*/
Version();

Version(int major, int minor, int patch, int buildNumber = 0);

/**
* Version information.
*
Expand Down
7 changes: 7 additions & 0 deletions doomsday/sdk/libcore/src/version.cpp
Expand Up @@ -36,6 +36,13 @@ Version::Version()
, build(0)
{}

Version::Version(int major, int minor, int patch, int buildNumber)
: major(major)
, minor(minor)
, patch(patch)
, build(buildNumber)
{}

Version Version::currentBuild()
{
Version v;
Expand Down

0 comments on commit 6b94a09

Please sign in to comment.