2011-08-21 15:14:49 -04:00
|
|
|
#ifndef OCARINA_VERSION_H
|
|
|
|
#define OCARINA_VERSION_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <sstream>
|
|
|
|
using namespace std;
|
|
|
|
|
2011-08-28 11:10:58 -04:00
|
|
|
unsigned int MAJOR = __MAJOR__;
|
|
|
|
unsigned int MINOR = __MINOR__;
|
|
|
|
unsigned int BUG = __BUG__;
|
|
|
|
string EXTRA = "__EXTRA__";
|
|
|
|
#ifdef DEBUG
|
|
|
|
bool IS_DEBUG = true;
|
|
|
|
#else /* DEBUG */
|
|
|
|
bool IS_DEBUG = false;
|
|
|
|
#endif /* DEBUG */
|
2011-08-21 15:14:49 -04:00
|
|
|
|
|
|
|
string vers_str()
|
|
|
|
{
|
|
|
|
stringstream stream;
|
|
|
|
stream << MAJOR << "." << MINOR;
|
|
|
|
if (BUG != 0)
|
|
|
|
stream << "." << BUG;
|
|
|
|
if (EXTRA != "")
|
2011-08-28 11:10:58 -04:00
|
|
|
stream << "-" << EXTRA;
|
|
|
|
if (IS_DEBUG == true)
|
|
|
|
stream << "-" << "debug";
|
2011-08-21 15:14:49 -04:00
|
|
|
return stream.str();
|
|
|
|
}
|
|
|
|
#endif /* OCARINA_VERSION_H */
|