[NFC][Coroutines] Use structured binding with llvm::enumerate in CoroSplit (#116879)
[llvm-project.git] / lldb / bindings / interface / SBMemoryRegionInfoExtensions.i
blob717622ade80820b0ccc6c75aff0feb1cd1be3720
1 STRING_EXTENSION_OUTSIDE(SBMemoryRegionInfo)
3 %extend lldb::SBMemoryRegionInfo {
4 #ifdef SWIGPYTHON
5 %pythoncode%{
6 # operator== is a free function, which swig does not handle, so we inject
7 # our own equality operator here
8 def __eq__(self, other):
9 return not self.__ne__(other)
11 def __hex__(self):
12 return self.GetRegionBase()
14 def __len__(self):
15 return self.GetRegionEnd() - self.GetRegionBase()
17 #endif