Modern Apps git

xtool.git

Public
git clone https://git.maproj.org/xtool.git
main ▾

xtool.git / Sources / CXKit / version.c

version.c22 lines · 373 BRaw
1#include "version.h"
2#include <stddef.h>
3
4const char *xtl_version(void) {
5#ifdef XTOOL_VERSION
6 return XTOOL_VERSION;
7#else
8 return "unversioned";
9#endif
10}
11
12bool xtl_has_uncommitted_changes(void) {
13#ifndef XTOOL_VERSION
14 return true;
15#else
16#ifdef XTOOL_HAS_UNCOMMITTED_CHANGES
17 return XTOOL_HAS_UNCOMMITTED_CHANGES != 0;
18#else
19 return false;
20#endif
21#endif
22}