Blame project/revision.h

535591
#include <stdio.h>
535591
#include <string.h>
535591
352a46
#include "cparser_version.h"
352a46
352a46
#ifndef CPARSER_THREAD
352a46
#define CPARSER_THREAD
352a46
#endif
352a46
352a46
static CPARSER_THREAD char cparser_revision_buffer[64] = {0};
352a46
352a46
static inline char * cparser_revision()
352a46
{
352a46
	if (strcmp(CPARSER_GIT_VERSION,"unknown"))
352a46
		sprintf(cparser_revision_buffer,"%s-dirty",
352a46
			CPARSER_GIT_VERSION);
352a46
352a46
	return cparser_revision_buffer;
352a46
}
352a46
352a46
#define cparser_REVISION cparser_revision()