aboutsummaryrefslogtreecommitdiffstats
path: root/shibokengenerator.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-11-19 15:57:31 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-19 16:15:27 -0300
commit923d660de00f5d7397fa4ab047f8db4407f1930c (patch)
treebac087e2d1484eee234d0c8415691d7b91df5669 /shibokengenerator.h
parent41d487c7dab6dca179cbb90b113e8fe06cd420ce (diff)
Modified ShibokenGenerator::writeCodeSnips to receive also an
AbstractMetaArgument indicating the last C++ argument available (i.e. converted from Python arguments to C++) to be used in the type system variable replacement. If a variable in the user's custom code is not ready, it is replaced by the argument default value. Also updated the documentation.
Diffstat (limited to 'shibokengenerator.h')
-rw-r--r--shibokengenerator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/shibokengenerator.h b/shibokengenerator.h
index 7fdfc8912..51c4c34aa 100644
--- a/shibokengenerator.h
+++ b/shibokengenerator.h
@@ -102,6 +102,7 @@ public:
* \param position the position to insert the code snip
* \param language the kind of code snip
* \param func the cpp function
+ * \param lastArg last argument whose value is available
* \param context the class context for the place where the code snip will be written
*/
void writeCodeSnips(QTextStream &s,
@@ -109,6 +110,7 @@ public:
CodeSnip::Position position,
TypeSystem::Language language,
const AbstractMetaFunction* func = 0,
+ const AbstractMetaArgument* lastArg = 0,
const AbstractMetaClass* context = 0);
/**