SWIG allows you to partially disable thread support for a given function
in Python with `nothreadallow`. This functionality is limited to Python,
but until SWIG 4.1, it would silently ignore this for other languages,
such as Lua. New versions of SWIG are more strict and therefore we need
to guard this with `SWIGPYTHON`.
For more details on the functionality, I recommend reading the commit
message from
070a1d562b30.
lldb::SBError GetError();
%extend {
+#ifdef SWIGPYTHON
%nothreadallow;
+#endif
std::string lldb::SBValueList::__str__ (){
lldb::SBStream description;
const size_t n = $self->GetSize();
--desc_len;
return std::string(desc, desc_len);
}
+#ifdef SWIGPYTHON
%clearnothreadallow;
+#endif
}
#ifdef SWIGPYTHON