diff options
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/function.py b/python/function.py index 37364840..2910d283 100644 --- a/python/function.py +++ b/python/function.py @@ -212,6 +212,14 @@ class Function(object): return architecture.Architecture(arch) @property + def platform(self): + """Function platform (read-only)""" + platform = core.BNGetFunctionPlatform(self.handle) + if platform is None: + return None + return platform.Platform(None, handle = platform) + + @property def start(self): """Function start (read-only)""" return core.BNGetFunctionStart(self.handle) |
