Fix so that C++ code is not generated for C wrappers

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8361 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-01-10 23:22:34 +00:00
commit ee8bc64a74
2 changed files with 3 additions and 2 deletions

View file

@ -230,8 +230,9 @@ PySwigClientData_New(PyObject* obj)
data->destroy = 0;
}
if (data->destroy) {
int flags;
Py_INCREF(data->destroy);
int flags = PyCFunction_GET_FLAGS(data->destroy);
flags = PyCFunction_GET_FLAGS(data->destroy);
#ifdef METH_O
data->delargs = !(flags & (METH_O));
#else