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 std::string &required_version)
 Check whether version is compatible with the current Ninja version, aborting if not. More...
 
void ParseVersion (const std::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

◆ CheckNinjaVersion()

void CheckNinjaVersion ( const std::string &  required_version)

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

◆ ParseVersion()

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

Parse the major/minor components of a version string.

Variable Documentation

◆ kNinjaVersion

const char* kNinjaVersion
extern

The version number of the current Ninja release.

This will always be "git" on trunk.

Definition at line 23 of file version.cc.

Referenced by CheckNinjaVersion().