summaryrefslogtreecommitdiff
path: root/project/revision.h
blob: 081bca1aa575b75caa3574561812490cf9dd5ebb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
#include <string.h>

#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()