1 // This is where the modules build/version is declared.
2 // If declared with -D in compile time, this file is ignored
3 #ifndef REDISEARCH_MODULE_VERSION_H
4 #define REDISEARCH_MODULE_VERSION_H
5 
6 #define REDISEARCH_VERSION_MAJOR 2
7 #define REDISEARCH_VERSION_MINOR 2
8 #define REDISEARCH_VERSION_PATCH 5
9 
10 #ifndef REDISEARCH_MODULE_NAME
11 #define REDISEARCH_MODULE_NAME "search"
12 #endif
13 
14 #define REDISEARCH_MODULE_VERSION \
15   (REDISEARCH_VERSION_MAJOR * 10000 + REDISEARCH_VERSION_MINOR * 100 + REDISEARCH_VERSION_PATCH)
16 
17 #ifdef RS_GIT_VERSION
RS_GetExtraVersion()18 static inline const char* RS_GetExtraVersion() {
19   return RS_GIT_VERSION;
20 }
21 #else
RS_GetExtraVersion()22 static inline const char* RS_GetExtraVersion() {
23   return "";
24 }
25 #endif
26 
27 #endif
28