From b46cc3b5d3f65fc9afedcdd2fd91f6eb9892b091 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 17 Jul 2011 15:29:22 -0500 Subject: Added CTOR_ macro --- src/option.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/option.h b/src/option.h index e2a4a839..eacc65d1 100644 --- a/src/option.h +++ b/src/option.h @@ -209,6 +209,8 @@ public: #define CTOR(type, name) \ name ## option_t() : option_t(#name) +#define CTOR_(type, name, base) \ + name ## option_t() : option_t(#name), base #define DECL1(type, name, vartype, var, value) \ vartype var ; \ name ## option_t() : option_t(#name), var(value) -- cgit v1.2.3