cleanup whitespace
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user