From d9c5531a3cf0967e2595cef18c63892c0d64d551 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Fri, 15 Jan 2010 18:26:57 -0300 Subject: 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 --- shibokengenerator.h | 1 + 1 file changed, 1 insertion(+) (limited to 'shibokengenerator.h') 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, -- cgit v1.2.3