Ninja
Functions | Variables
version.cc File Reference
#include "version.h"
#include <stdlib.h>
#include "util.h"
Include dependency graph for version.cc:

Go to the source code of this file.

Functions

void CheckNinjaVersion (const string &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 = "1.3.4"
 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 = "1.3.4"

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().