Lindsay Mathieson's newest wxActiveX class has been wrapped into a new
extension module called wx.activex. Lots of demo and lib updates to go along with it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -144,8 +144,20 @@ void wxPyEndBlockThreads();
|
||||
|
||||
#endif // wxPyUSE_EXPORTED_API
|
||||
|
||||
#define wxPyBLOCK_THREADS(stmt) { wxPyBeginBlockThreads(); stmt; wxPyEndBlockThreads(); }
|
||||
#define wxPyRaiseNotImplemented() wxPyBLOCK_THREADS(PyErr_SetNone(PyExc_NotImplementedError))
|
||||
|
||||
// A macro that will help to execute simple statments wrapped in
|
||||
// StartBlock/EndBlockThreads calls
|
||||
#define wxPyBLOCK_THREADS(stmt) \
|
||||
{ wxPyBeginBlockThreads(); stmt; wxPyEndBlockThreads(); }
|
||||
|
||||
// Raise the NotImplementedError exception (blocking threads)
|
||||
#define wxPyRaiseNotImplemented() \
|
||||
wxPyBLOCK_THREADS(PyErr_SetNone(PyExc_NotImplementedError))
|
||||
|
||||
// Raise any exception witha string value (blocking threads)
|
||||
#define wxPyErr_SetString(err, str) \
|
||||
wxPyBLOCK_THREADS(PyErr_SetString(err, str))
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// These are helpers used by the typemaps
|
||||
|
Reference in New Issue
Block a user