Fix incompatibilities with pygccxml 0.9 and Python 2.4 (I was testing with pygccxml HEAD and Python 2.5).

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-01-24 15:58:00 +00:00
1 parent 6304d74af7
commit a4e67a145c
6 files changed
+23 -17

No files matched your search

+1 -1
View File
@@ -1004,7 +1004,7 @@ static void
peekref_code = " && self->obj->%s() == 1" % self.peekref_method
visit_self = '''
if (self->obj && typeid(*self->obj) == typeid(%s)%s)
Py_VISIT(self);
Py_VISIT((PyObject *) self);
''' % (self.helper_class.name, peekref_code)
code_sink.writeln(r'''