summaryrefslogtreecommitdiff
path: root/project/revision.h
blob: f03f656e2269db3e584107e4977770df04f6dccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "cparser_version.h"

#ifndef CPARSER_THREAD
#define CPARSER_THREAD
#endif

static CPARSER_THREAD char cparser_revision_buffer[64] = {0};

static inline char * cparser_revision()
{
	if (strcmp(CPARSER_GIT_VERSION,"unknown"))
		sprintf(cparser_revision_buffer,"%s-dirty",
			CPARSER_GIT_VERSION);

	return cparser_revision_buffer;
}

#define cparser_REVISION cparser_revision()