X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ea6e0ec63b235fcd6ae6a44b9ad2c18a87b6024..04b6e2f0c1a6a838e26296b0f39cdb6b5231bdb2:/wxPython/src/_defs.i?ds=sidebyside diff --git a/wxPython/src/_defs.i b/wxPython/src/_defs.i index 9228e2695d..83d95ba39f 100644 --- a/wxPython/src/_defs.i +++ b/wxPython/src/_defs.i @@ -30,13 +30,13 @@ // This one can be used to add a check for an existing wxApp before the real // work is done. An exception is raised if there isn't one. %define MustHaveApp(name) - %exception name { - if (!wxPyCheckForApp()) SWIG_fail; - PyThreadState* __tstate = wxPyBeginAllowThreads(); - $action - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } +%exception name { + if (!wxPyCheckForApp()) SWIG_fail; + PyThreadState* __tstate = wxPyBeginAllowThreads(); + $action + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; +} %enddef @@ -190,13 +190,13 @@ typedef unsigned char byte; // Set the autodoc and the docstring for a decl and then define the decl too. // Must use the full declaration of the item. #ifdef _DO_FULL_DOCS - %define DocDeclAStr(type, decl, astr, details, docstr) + %define DocDeclAStr(type, decl, astr, docstr, details) %feature("autodoc") decl astr; %feature("docstring") decl docstr details; type decl %enddef #else - %define DocDeclAStr(type, decl, astr, details, docstr) + %define DocDeclAStr(type, decl, astr, docstr, details) %feature("autodoc") decl astr; %feature("docstring") decl docstr; type decl