ocarina/scripts/version.tmpl

24 lines
428 B
Cheetah

#ifndef OCARINA_VERSION_H
#define OCARINA_VERSION_H
#include <string>
#include <sstream>
using namespace std;
unsigned int MAJOR = AAAAA;
unsigned int MINOR = BBBBB;
unsigned int BUG = CCCCC;
string EXTRA = "DDDDD";
string vers_str()
{
stringstream stream;
stream << MAJOR << "." << MINOR;
if (BUG != 0)
stream << "." << BUG;
if (EXTRA != "")
stream << EXTRA;
return stream.str();
}
#endif /* OCARINA_VERSION_H */