X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/08dcfb926641b6eaa8622cd298e5d2a998ed5bc9..c437fde9f90fc7dfcac79053d214fc9146d7be21:/wxPython/src/_defs.i?ds=sidebyside diff --git a/wxPython/src/_defs.i b/wxPython/src/_defs.i index 5c1f8b0824..c372c37d75 100644 --- a/wxPython/src/_defs.i +++ b/wxPython/src/_defs.i @@ -259,6 +259,20 @@ typedef unsigned long wxUIntPtr; %enddef #endif +#ifdef _DO_FULL_DOCS + %define RenameDocCtorStr(newname, docstr, details, decl) + %feature("docstring") decl docstr details; + %rename(newname) decl; + decl + %enddef +#else + %define RenameDocCtorStr(newname, docstr, details, decl) + %feature("docstring") decl docstr; + %rename(newname) decl; + decl + %enddef +#endif + // Set the autodoc string for a constructor decl and then define the decl too. @@ -333,6 +347,19 @@ typedef unsigned long wxUIntPtr; decl %enddef +#ifdef _DO_FULL_DOCS + %define %RenameDocCtor(newname, docstr, details, decl) + %feature("docstring") decl docstr details; + %rename(newname) decl; + decl + %enddef +#else + %define %RenameDocCtor(newname, docstr, details, decl) + %feature("docstring") decl docstr; + %rename(newname) decl; + decl + %enddef +#endif //--------------------------------------------------------------------------- // Forward declarations and %renames for some classes, so the autodoc strings