Ninja
Functions | Variables
version.h File Reference
#include <string>
Include dependency graph for version.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void CheckNinjaVersion (const string &required_version)
 Check whether version is compatible with the current Ninja version, aborting if not. More...
 
void ParseVersion (const string &version, int *major, int *minor)
 Parse the major/minor components of a version string. More...
 

Variables

const char * kNinjaVersion
 The version number of the current Ninja release. More...
 

Function Documentation

void CheckNinjaVersion ( const string &  required_version)

Check whether version is compatible with the current Ninja version, aborting if not.

Definition at line 34 of file version.cc.

References Fatal(), kNinjaVersion, ParseVersion(), and Warning().

Referenced by ManifestParser::Parse().

void ParseVersion ( const string &  version,
int *  major,
int *  minor 
)

Parse the major/minor components of a version string.

Definition at line 23 of file version.cc.

Referenced by CheckNinjaVersion().

Variable Documentation

const char* kNinjaVersion

The version number of the current Ninja release.

This will always be "git" on trunk.

Definition at line 21 of file version.cc.

Referenced by CheckNinjaVersion().