diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-01-18 15:25:13 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-01-18 15:26:54 -0300 |
commit | ae513bfa93f194acb7ed7e358ae65812e2f4c214 (patch) | |
tree | 986a69549302c77827c3dd78f925e6af1867158c /shibokengenerator.h | |
parent | f8e64fa28917dfd7446f8710ec2a1a33ef06cebc (diff) |
Common variable names are stored as #defines instead of C++ static methods.
Reviewed by Hugo Parente Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'shibokengenerator.h')
-rw-r--r-- | shibokengenerator.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/shibokengenerator.h b/shibokengenerator.h index 8f16e8306..13bed57dd 100644 --- a/shibokengenerator.h +++ b/shibokengenerator.h @@ -24,6 +24,11 @@ #ifndef SHIBOKENGENERATOR_H #define SHIBOKENGENERATOR_H +#define PYTHON_RETURN_VAR "py_result" +#define CPP_RETURN_VAR "cpp_result" +#define THREAD_STATE_SAVER_VAR "thread_state_saver" +#define CPP_SELF_VAR "cppSelf" + #include <generatorrunner/generator.h> #include <QtCore/QTextStream> @@ -280,11 +285,6 @@ protected: */ static void initPrimitiveTypesCorrespondences(); - static QString pythonReturnVariableName() { return QString("py_result"); } - static QString cppReturnVariableName() { return QString("cpp_result"); } - static QString threadStateVariableName() { return QString("thread_state_saver"); } - static QString cppSelfVariableName() { return QString("cppSelf"); } - AbstractMetaFunctionList queryFunctions(const AbstractMetaClass* metaClass, bool allFunction = false); void writeFunctionCall(QTextStream& s, const AbstractMetaFunction* metaFunc, |