Fix to include comment for non-member functions in python
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13149 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
744d59c9d0
commit
ac6b51f13e
1 changed files with 7 additions and 0 deletions
|
|
@ -1780,6 +1780,13 @@ public:
|
|||
String *callParms = make_pyParmList(n, false, true, kw);
|
||||
/* Make a wrapper function to insert the code into */
|
||||
Printv(f_dest, "\ndef ", name, "(", parms, ")", returnTypeAnnotation(n), ":\n", NIL);
|
||||
if (doxygen) {
|
||||
String *doxygen_comments;
|
||||
if (DoxygenTranslator::getDocumentation(n, PyDoc, doxygen_comments)) {
|
||||
Printf(f_dest, Char(pythoncode(doxygen_comments, tab2)));
|
||||
Delete(doxygen_comments);
|
||||
}
|
||||
}
|
||||
if (have_docstring(n))
|
||||
Printv(f_dest, " ", docstring(n, AUTODOC_FUNC, tab4), "\n", NIL);
|
||||
if (have_pythonprepend(n))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue