-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcommon.h
More file actions
36 lines (28 loc) · 754 Bytes
/
common.h
File metadata and controls
36 lines (28 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Copyright Redis Ltd. 2021 - present
* Licensed under your choice of the Redis Source Available License 2.0 (RSALv2) or
* the Server Side Public License v1 (SSPLv1).
*/
#ifndef SRC_COMMON_H_
#define SRC_COMMON_H_
#define xstr(s) str(s)
#define str(s) #s
#ifndef MODULE_NAME
#error "MODULE_NAME is not defined"
#endif
typedef struct MR_RedisVersion
{
int redisMajorVersion;
int redisMinorVersion;
int redisPatchVersion;
} MR_RedisVersion;
extern MR_RedisVersion MR_currVersion;
extern int MR_RlecMajorVersion;
extern int MR_RlecMinorVersion;
extern int MR_RlecPatchVersion;
extern int MR_RlecBuild;
extern int MR_IsEnterprise;
static inline int MR_IsEnterpriseBuild() {
return MR_IsEnterprise;
}
#endif /* SRC_COMMON_H_ */