/////////////////////////////////////////////////////////////////////////////
-//---------------------------------------------------------------------------
-// Tell SWIG to wrap all the wrappers with our thread protection
-
-%exception {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- $action
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
-}
-
-
//----------------------------------------------------------------------
// Typemaps to convert a list of items to an int (size) and an array
$1 = new wxMemoryBuffer(len);
temp = True;
memcpy($1->GetData(), str, len);
+ $1->SetDataLen(len);
}
%typemap(freearg) wxMemoryBuffer& {