bolt/deps/llvm-18.1.8/lldb/bindings/interface/SBThreadCollectionExtensions.i

15 lines
384 B
OpenEdge ABL
Raw Normal View History

2025-02-14 19:21:04 +01:00
%extend lldb::SBThreadCollection {
#ifdef SWIGPYTHON
%pythoncode%{
def __iter__(self):
'''Iterate over all threads in a lldb.SBThreadCollection object.'''
return lldb_iter(self, 'GetSize', 'GetThreadAtIndex')
def __len__(self):
'''Return the number of threads in a lldb.SBThreadCollection object.'''
return self.GetSize()
%}
#endif
}