Make INIT optional for TUPLE.
This commit is contained in:
1 parent
5eb5d2420e
commit
ce948bd9ce
2 files changed
+11
-2
No files matched your search
@@ -33,6 +33,11 @@ TUPLE_DEF2(pair,
|
||||
(value, testobj_t, TESTOBJ_OPLIST) )
|
||||
END_COVERAGE
|
||||
|
||||
// Minimum definition
|
||||
TUPLE_DEF2(pair_min,
|
||||
(key1, string_t, (INIT_SET(string_init_set), SET(string_set), CLEAR(string_clear))),
|
||||
(key2, string_t, (INIT_SET(string_init_set), SET(string_set), CLEAR(string_clear))))
|
||||
|
||||
// No cmp defined
|
||||
TUPLE_DEF2(triple,
|
||||
(key, string_t, (INIT(string_init), INIT_SET(string_init_set), SET(string_set), CLEAR(string_clear), CMP(string_cmp))),
|
||||
@@ -66,6 +71,7 @@ TUPLE_DEF2(rtuple2, (name, string_t), (value, int))
|
||||
|
||||
TUPLE_DEF2(rtuple3, (name, string_t), (ituple2, rtuple2_t), (ituple, rtuple_t) )
|
||||
|
||||
|
||||
static void check_swap(void)
|
||||
{
|
||||
pair_str_t p1, p2;
|
||||
|
||||
Reference in new issue
Block a user