diff options
| author | Rusty Wagner <rusty@vector35.com> | 2017-02-16 19:12:43 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2017-02-16 19:18:55 -0500 |
| commit | 57c08987ee10af0b52d5c3fd44739a3935f9efa7 (patch) | |
| tree | 248c70d5d1891855c8947d0c6bb395c00d063079 /python/lowlevelil.py | |
| parent | 6ac3ea169e980b86c45c017892ef8a76fe5fb95d (diff) | |
Basic blocks have incoming and outgoing edges with basic block references, use core object identity for equality
Diffstat (limited to 'python/lowlevelil.py')
| -rw-r--r-- | python/lowlevelil.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py index 29b46b65..c80fcd0d 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -253,6 +253,16 @@ class LowLevelILFunction(object): def __del__(self): core.BNFreeLowLevelILFunction(self.handle) + def __eq__(self, value): + if not isinstance(value, LowLevelILFunction): + return False + return ctypes.addressof(self.handle.contents) == ctypes.addressof(value.handle.contents) + + def __ne__(self, value): + if not isinstance(value, LowLevelILFunction): + return True + return ctypes.addressof(self.handle.contents) != ctypes.addressof(value.handle.contents) + @property def current_address(self): """Current IL Address (read/write)""" |
