summaryrefslogtreecommitdiff
path: root/cli/inline.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-11-22 16:58:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-11-22 16:58:56 +0200
commita376ccf37122f0768fce8e3c5a16561e01ee2351 (patch)
tree31878d0b10bf15989f2b08976a5de0fabebcac42 /cli/inline.cxx
parent0e56fe29a9afeee00e02e722496678df89d37d50 (diff)
Implement option value modifiers generation
Diffstat (limited to 'cli/inline.cxx')
-rw-r--r--cli/inline.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/cli/inline.cxx b/cli/inline.cxx
index 23a87ff..a4db1da 100644
--- a/cli/inline.cxx
+++ b/cli/inline.cxx
@@ -23,8 +23,15 @@ namespace
os << inl << "const " << type << "& " << scope << "::" << endl
<< name << " () const"
<< "{"
- << "return " << emember (o) << ";"
+ << "return this->" << emember (o) << ";"
<< "}";
+
+ if (modifier)
+ os << inl << "void " << scope << "::" << endl
+ << name << "(const " << type << "& x)"
+ << "{"
+ << "this->" << emember (o) << " = x;"
+ << "}";
}
};