blob: c18f011e31872da98f4462bef34b712c3f39333d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
STRING_EXTENSION_LEVEL_OUTSIDE(SBWatchpoint, lldb::eDescriptionLevelVerbose)
%extend lldb::SBWatchpoint {
#ifdef SWIGPYTHON
%pythoncode%{
# operator== is a free function, which swig does not handle, so we inject
# our own equality operator here
def __eq__(self, other):
return not self.__ne__(other)
def __hex__(self):
return self.GetWatchAddress()
def __len__(self):
return self.GetWatchSize()
%}
#endif
}
|