aboutsummaryrefslogtreecommitdiffstats
path: root/headergenerator.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-02-24 15:16:34 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-02-24 15:41:51 -0300
commit622c131f1b50f8206c189a3836fd0142163196eb (patch)
treea0e49a38dad465013e5fd6e393fe1ee823217374 /headergenerator.cpp
parent828ed8e7fc3fa0a3184ddd884e8622a0e5bde080 (diff)
The C++ pointer for a Python wrapper is now acquired using a Converter.
The macros for casting a wrapper C++ void pointer to a specific C++ pointer are no longer generated, converters are used instead. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'headergenerator.cpp')
-rw-r--r--headergenerator.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/headergenerator.cpp b/headergenerator.cpp
index d961b1c51..4c5971967 100644
--- a/headergenerator.cpp
+++ b/headergenerator.cpp
@@ -290,8 +290,6 @@ void HeaderGenerator::finishGeneration()
writeSbkCopyCppObjectFunction(convDecl, innerClass);
s_cin << innerClass->typeEntry()->include().toString() << endl;
writeTypeCheckMacro(s_pts, innerClass->typeEntry());
- s_pts << "#define " << cpythonWrapperCPtr(innerClass, "pyobj") << " ((";
- s_pts << innerClass->qualifiedCppName() << "*)SbkBaseWrapper_cptr(pyobj))" << endl << endl;
writeTypeConverterDecl(convDecl, innerClass->typeEntry());
writeTypeConverterImpl(convImpl, innerClass->typeEntry());
convDecl << endl;
@@ -299,8 +297,6 @@ void HeaderGenerator::finishGeneration()
}
}
writeTypeCheckMacro(s_pts, classType);
- s_pts << "#define " << cpythonWrapperCPtr(metaClass, "pyobj") << " ((";
- s_pts << metaClass->qualifiedCppName() << "*)SbkBaseWrapper_cptr(pyobj))" << endl << endl;
writeTypeConverterDecl(convDecl, classType);
writeTypeConverterImpl(convImpl, classType);
convDecl << endl;