Added CTOR_ macro
This commit is contained in:
parent
f2d99dae08
commit
b46cc3b5d3
1 changed files with 2 additions and 0 deletions
|
|
@ -209,6 +209,8 @@ public:
|
|||
|
||||
#define CTOR(type, name) \
|
||||
name ## option_t() : option_t<type>(#name)
|
||||
#define CTOR_(type, name, base) \
|
||||
name ## option_t() : option_t<type>(#name), base
|
||||
#define DECL1(type, name, vartype, var, value) \
|
||||
vartype var ; \
|
||||
name ## option_t() : option_t<type>(#name), var(value)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue