* Add control than the type and the oplist are compatible
This commit is contained in:
1 parent
9c58e73c37
commit
d1ae26f0fd
13 files changed
+38
No files matched your search
@@ -250,6 +250,9 @@
|
||||
typedef key_type M_C(name, _key_type_t); \
|
||||
typedef value_type M_C(name, _value_type_t); \
|
||||
\
|
||||
M_CHECK_COMPATIBLE_OPLIST(name, 1, key_type, key_oplist) \
|
||||
M_CHECK_COMPATIBLE_OPLIST(name, 2, value_type, value_oplist) \
|
||||
\
|
||||
typedef struct M_C(name, _it_s) { \
|
||||
M_C(name, _array_list_pair_it_t) array_it; \
|
||||
M_C(name, _list_pair_it_t) list_it; \
|
||||
@@ -1187,6 +1190,9 @@ typedef enum {
|
||||
size_t index; \
|
||||
} dict_it_t[1]; \
|
||||
\
|
||||
M_CHECK_COMPATIBLE_OPLIST(name, 1, key_type, key_oplist) \
|
||||
M_CHECK_COMPATIBLE_OPLIST(name, 2, value_type, value_oplist) \
|
||||
\
|
||||
static inline void \
|
||||
M_C(name,_int_limit)(dict_t dict, size_t size) \
|
||||
{ \
|
||||
|
||||
Reference in new issue
Block a user