diff options
author | John Wiegley <johnw@newartisans.com> | 2011-07-17 15:29:22 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2011-07-17 15:29:22 -0500 |
commit | b46cc3b5d3f65fc9afedcdd2fd91f6eb9892b091 (patch) | |
tree | a1104cdaabe13b6c056086476455ed4fc9ac7e45 /src/option.h | |
parent | f2d99dae082dbd9a289c01b94930e52e021d9a4c (diff) | |
download | fork-ledger-b46cc3b5d3f65fc9afedcdd2fd91f6eb9892b091.tar.gz fork-ledger-b46cc3b5d3f65fc9afedcdd2fd91f6eb9892b091.tar.bz2 fork-ledger-b46cc3b5d3f65fc9afedcdd2fd91f6eb9892b091.zip |
Added CTOR_ macro
Diffstat (limited to 'src/option.h')
-rw-r--r-- | src/option.h | 2 |
1 files changed, 2 insertions, 0 deletions
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<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) |