brintos

brintos / llvm-project-archived public Read only

0
0
Text · 472 B · c18f011 Raw
19 lines · plain
1STRING_EXTENSION_LEVEL_OUTSIDE(SBWatchpoint, lldb::eDescriptionLevelVerbose)2 3%extend lldb::SBWatchpoint {4#ifdef SWIGPYTHON5    %pythoncode%{6      # operator== is a free function, which swig does not handle, so we inject7      # our own equality operator here8      def __eq__(self, other):9        return not self.__ne__(other)10 11      def __hex__(self):12        return self.GetWatchAddress()13 14      def __len__(self):15        return self.GetWatchSize()16    %}17#endif18}19