ocarina/include/version.tmpl
Bryan Schumaker 7e9b2f9380 Switch from make to scons
Scons will track changes to my include/ directory better than make will.
I also have an easier time understanding the Sconstruct file than I did
with Makefiles.
2011-08-28 11:10:58 -04:00

31 lines
597 B
Cheetah

#ifndef OCARINA_VERSION_H
#define OCARINA_VERSION_H
#include <string>
#include <sstream>
using namespace std;
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 */
string vers_str()
{
stringstream stream;
stream << MAJOR << "." << MINOR;
if (BUG != 0)
stream << "." << BUG;
if (EXTRA != "")
stream << "-" << EXTRA;
if (IS_DEBUG == true)
stream << "-" << "debug";
return stream.str();
}
#endif /* OCARINA_VERSION_H */