X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4013de121752b375a10a40ac9eb0e966674b2b24..d8194e5dd4fc56bb4e8a4dccb1dae9500c6be584:/wxPython/src/_defs.i 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