Rename _get_ methods for tuple & variants into _get_at_ methods.
Add _cget_at_ methods too.
This commit is contained in:
1 parent
af5742ce2d
commit
c9ebedb01f
4 files changed
+28
-4
No files matched your search
@@ -250,6 +250,13 @@
|
||||
return NULL; \
|
||||
} \
|
||||
return &my -> value . VARIANTI_GET_FIELD a; \
|
||||
} \
|
||||
static inline VARIANTI_GET_TYPE a const * \
|
||||
M_C3(name, _cget_, VARIANTI_GET_FIELD a)(M_C(name,_t) const my) { \
|
||||
if (my->type != M_C4(name, _, VARIANTI_GET_FIELD a, _value) ) { \
|
||||
return NULL; \
|
||||
} \
|
||||
return &my -> value . VARIANTI_GET_FIELD a; \
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user