This reverts commit 18f1c1ace7 and fix the
build failure issues introduced because of the `STRING_EXTENSION_OUTSIDE`
swig macros.
Differential Revision: https://reviews.llvm.org/D159017
Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
29 lines
972 B
OpenEdge ABL
29 lines
972 B
OpenEdge ABL
STRING_EXTENSION_OUTSIDE(SBCompileUnit)
|
|
|
|
%extend lldb::SBCompileUnit {
|
|
#ifdef SWIGPYTHON
|
|
%pythoncode %{
|
|
def __int__(self):
|
|
pass
|
|
|
|
def __hex__(self):
|
|
pass
|
|
|
|
def __oct__(self):
|
|
pass
|
|
|
|
def __iter__(self):
|
|
'''Iterate over all line entries in a lldb.SBCompileUnit object.'''
|
|
return lldb_iter(self, 'GetNumLineEntries', 'GetLineEntryAtIndex')
|
|
|
|
def __len__(self):
|
|
'''Return the number of line entries in a lldb.SBCompileUnit
|
|
object.'''
|
|
return self.GetNumLineEntries()
|
|
|
|
file = property(GetFileSpec, None, doc='''A read only property that returns the same result an lldb object that represents the source file (lldb.SBFileSpec) for the compile unit.''')
|
|
num_line_entries = property(GetNumLineEntries, None, doc='''A read only property that returns the number of line entries in a compile unit as an integer.''')
|
|
%}
|
|
#endif
|
|
}
|