summaryrefslogtreecommitdiff
path: root/src/option.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-07-17 15:29:22 -0500
committerJohn Wiegley <johnw@newartisans.com>2011-07-17 15:29:22 -0500
commitb46cc3b5d3f65fc9afedcdd2fd91f6eb9892b091 (patch)
treea1104cdaabe13b6c056086476455ed4fc9ac7e45 /src/option.h
parentf2d99dae082dbd9a289c01b94930e52e021d9a4c (diff)
downloadfork-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.h2
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)