2 algorithm library version
6 #ifndef LUA_LIBA_VERSION_H
7 #define LUA_LIBA_VERSION_H
12 algorithm library version
13 @field major version major number
14 @field minor version minor number
15 @field patch version patch number
16 @field extra version extra number
19 #if defined(__cplusplus)
21 #endif /* __cplusplus */
24 constructor for algorithm library version
25 @tparam[opt] integer major version major number
26 @tparam[opt] integer minor version minor number
27 @tparam[opt] integer patch version patch number
28 @tparam[opt] integer extra version extra number
29 @treturn a.version algorithm library version userdata
32 int liba_version_new(lua_State
*L
);
35 initialize for algorithm library version
36 @tparam[opt] integer major version major number
37 @tparam[opt] integer minor version minor number
38 @tparam[opt] integer patch version patch number
39 @tparam[opt] integer extra version extra number
40 @treturn a.version algorithm library version userdata
43 int liba_version_init(lua_State
*L
);
46 algorithm library version parse
47 @tparam string version string to be parsed
48 @treturn a.version algorithm library version userdata
51 int liba_version_parse(lua_State
*L
);
54 compare the version lhs with the version rhs
55 @tparam a.version lhs version userdata on the left
56 @tparam a.version rhs version userdata on the right
57 @treturn integer <0 version lhs < version rhs
58 @treturn integer >0 version lhs > version rhs
59 @treturn integer 0 version lhs == version rhs
62 int liba_version_cmp(lua_State
*L
);
65 version lhs is less than version rhs
66 @tparam a.version lhs version userdata on the left
67 @tparam a.version rhs version userdata on the right
68 @treturn integer result of comparison
71 int liba_version_lt(lua_State
*L
);
74 version lhs is greater than version rhs
75 @tparam a.version lhs version userdata on the left
76 @tparam a.version rhs version userdata on the right
77 @treturn integer result of comparison
80 int liba_version_gt(lua_State
*L
);
83 version lhs is less than or equal to version rhs
84 @tparam a.version lhs version userdata on the left
85 @tparam a.version rhs version userdata on the right
86 @treturn integer result of comparison
89 int liba_version_le(lua_State
*L
);
92 version lhs is greater than or equal to version rhs
93 @tparam a.version lhs version userdata on the left
94 @tparam a.version rhs version userdata on the right
95 @treturn integer result of comparison
98 int liba_version_ge(lua_State
*L
);
101 version lhs is equal to version rhs
102 @tparam a.version lhs version userdata on the left
103 @tparam a.version rhs version userdata on the right
104 @treturn integer result of comparison
107 int liba_version_eq(lua_State
*L
);
110 version lhs is not equal to version rhs
111 @tparam a.version lhs version userdata on the left
112 @tparam a.version rhs version userdata on the right
113 @treturn integer result of comparison
116 int liba_version_ne(lua_State
*L
);
118 #if defined(__cplusplus)
120 #endif /* __cplusplus */
122 #endif /* version.h */