Add some eol to clean up representation
This commit is contained in:
1 parent
5c35411f43
commit
d382a1d0fa
1 file changed
+5
@@ -165,6 +165,7 @@
|
|||||||
VARIANTI_GET_CLEAR a (my -> value. VARIANTI_GET_FIELD a); \
|
VARIANTI_GET_CLEAR a (my -> value. VARIANTI_GET_FIELD a); \
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
#define VARIANTI_DEFINE_TEST_P(name, ...) \
|
#define VARIANTI_DEFINE_TEST_P(name, ...) \
|
||||||
static inline bool M_C(name, _empty_p)(M_C(name,_t) my) { \
|
static inline bool M_C(name, _empty_p)(M_C(name,_t) my) { \
|
||||||
return my->type == M_C(name, _EMPTY); \
|
return my->type == M_C(name, _EMPTY); \
|
||||||
@@ -209,6 +210,7 @@
|
|||||||
return &my -> value . VARIANTI_GET_FIELD a; \
|
return &my -> value . VARIANTI_GET_FIELD a; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define VARIANTI_DEFINE_EQUAL(name, ...) \
|
#define VARIANTI_DEFINE_EQUAL(name, ...) \
|
||||||
static inline bool M_C(name, _equal_p)(M_C(name,_t) const e1 , \
|
static inline bool M_C(name, _equal_p)(M_C(name,_t) const e1 , \
|
||||||
M_C(name,_t) const e2) { \
|
M_C(name,_t) const e2) { \
|
||||||
@@ -352,6 +354,7 @@
|
|||||||
VARIANTI_GET_OUT_STR a (f, el -> value . VARIANTI_GET_FIELD a); \
|
VARIANTI_GET_OUT_STR a (f, el -> value . VARIANTI_GET_FIELD a); \
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
#define VARIANTI_DEFINE_IN_STR(name, ...) \
|
#define VARIANTI_DEFINE_IN_STR(name, ...) \
|
||||||
static inline bool M_C(name, _in_str)(M_C(name,_t) el, \
|
static inline bool M_C(name, _in_str)(M_C(name,_t) el, \
|
||||||
FILE *f) { \
|
FILE *f) { \
|
||||||
@@ -385,6 +388,7 @@
|
|||||||
if (!b) return false; \
|
if (!b) return false; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define VARIANTI_DEFINE_CLEAN_FUNC(name, ...) \
|
#define VARIANTI_DEFINE_CLEAN_FUNC(name, ...) \
|
||||||
static inline void M_C(name, _clean)(M_C(name,_t) my) \
|
static inline void M_C(name, _clean)(M_C(name,_t) my) \
|
||||||
{ \
|
{ \
|
||||||
@@ -392,6 +396,7 @@
|
|||||||
M_C(name, _init)(my); \
|
M_C(name, _init)(my); \
|
||||||
} \
|
} \
|
||||||
|
|
||||||
|
|
||||||
#define VARIANTI_OPLIST(name, ...) \
|
#define VARIANTI_OPLIST(name, ...) \
|
||||||
(INIT(M_C(name,_init)), \
|
(INIT(M_C(name,_init)), \
|
||||||
INIT_SET(M_C(name, _init_set)), \
|
INIT_SET(M_C(name, _init_set)), \
|
||||||
|
|||||||
Reference in new issue
Block a user