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:
parent
ecd793845f
commit
41ea394b6e
3 changed files with 15 additions and 4 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue