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)
 
void ParseVersion (const string &version, int *major, int *minor)
 

Variables

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

Function Documentation

◆ CheckNinjaVersion()

void CheckNinjaVersion ( const string &  version)

Definition at line 36 of file version.cc.

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

Referenced by ManifestParser::Parse().

◆ ParseVersion()

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

Definition at line 25 of file version.cc.

Referenced by CheckNinjaVersion(), and DyndepParser::ParseDyndepVersion().

Variable Documentation

◆ kNinjaVersion

const char* kNinjaVersion = "1.13.1"

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