aboutsummaryrefslogtreecommitdiffstats
path: root/shibokengenerator.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-01-15 18:26:57 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-01-15 20:12:26 -0300
commitd9c5531a3cf0967e2595cef18c63892c0d64d551 (patch)
treea62d5be5336acf5d518a813ab714632285e3e633 /shibokengenerator.h
parentde5187268ab7dd96fc5fa98c583086fc5afe5b48 (diff)
Adds CppGenerator::writeCppSelfDefinition method.
The code to write the definition of cppSelf was in two places and contained an #ifdef clause, now it is a writer method. Also added the ShibokenGenerator::cppSelfVariableName() method to be used instead of directly writing the "cppSelf" string. Updated custom code on test binding to remove warning. Reviewed by Hugo Parente Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'shibokengenerator.h')
-rw-r--r--shibokengenerator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/shibokengenerator.h b/shibokengenerator.h
index 794f63589..4d98ef103 100644
--- a/shibokengenerator.h
+++ b/shibokengenerator.h
@@ -283,6 +283,7 @@ protected:
static QString pythonReturnVariableName() { return QString("py_result"); }
static QString cppReturnVariableName() { return QString("cpp_result"); }
static QString threadStateVariableName() { return QString("thread_state"); }
+ static QString cppSelfVariableName() { return QString("cppSelf"); }
AbstractMetaFunctionList queryFunctions(const AbstractMetaClass* metaClass, bool allFunction = false);
void writeFunctionCall(QTextStream& s,