add SUB_SELECT macro (#4897)

This commit is contained in:
Regev Brody 2023-05-29 00:44:05 +03:00 committed by GitHub
parent ebad407586
commit 57023457ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,6 +17,13 @@ namespace select {
} \
}
#define SUB_SELECT(name) \
protected: \
select::Select *name##_select_{nullptr}; \
\
public: \
void set_##name##_select(select::Select *select) { this->name##_select_ = select; }
/** Base-class for all selects.
*
* A select can use publish_state to send out a new value.