fix seg fault with feature:callback

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8178 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-02 09:50:50 +00:00
commit 41ea394b6e
3 changed files with 15 additions and 4 deletions

View file

@ -1293,7 +1293,7 @@ public:
Printf(methods,"\t { (char *)\"%s\", (PyCFunction) %s, METH_VARARGS | METH_KEYWORDS, ", name, function);
}
if (n && GetFlag(n,"feature:callback")) {
if (n && Getattr(n,"feature:callback")) {
if (have_docstring(n)) {
String* ds = docstring(n, AUTODOC_FUNC, "", false);
Replaceall(ds, "\n", "\\n");