#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 */
