From a376ccf37122f0768fce8e3c5a16561e01ee2351 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 22 Nov 2009 16:58:56 +0200 Subject: Implement option value modifiers generation --- cli/inline.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cli/inline.cxx') 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;" + << "}"; } }; -- cgit v1.1