mirror of
https://github.com/intel/llvm.git
synced 2026-01-23 16:06:39 +08:00
19 lines
481 B
OpenEdge ABL
19 lines
481 B
OpenEdge ABL
STRING_EXTENSION_OUTSIDE(SBStructuredData)
|
|
|
|
%extend lldb::SBStructuredData {
|
|
#ifdef SWIGPYTHON
|
|
%pythoncode%{
|
|
def __int__(self):
|
|
return self.GetSignedInteger()
|
|
|
|
def __len__(self):
|
|
'''Return the number of element in a lldb.SBStructuredData object.'''
|
|
return self.GetSize()
|
|
|
|
def __iter__(self):
|
|
'''Iterate over all the elements in a lldb.SBStructuredData object.'''
|
|
return lldb_iter(self, 'GetSize', 'GetItemAtIndex')
|
|
%}
|
|
#endif
|
|
}
|