summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2022-01-06 13:01:42 -0500
committerPeter LaFosse <peter@vector35.com>2022-01-06 15:01:25 -0500
commitd9661f34eec6855d495a10eaafc2a8e2679756a7 (patch)
tree37234942e54f13c779c11370512b0eb6e1427e56 /python/function.py
parent48f9130ad0085015187f45fde64611bb3c342f38 (diff)
Add Function::HasUserAnnotations
Diffstat (limited to 'python/function.py')
-rw-r--r--python/function.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/function.py b/python/function.py
index 332b5769..d3b9ea88 100644
--- a/python/function.py
+++ b/python/function.py
@@ -497,6 +497,13 @@ class Function:
return core.BNWasFunctionAutomaticallyDiscovered(self.handle)
@property
+ def has_user_annotations(self) -> bool:
+ """
+ Whether the function has ever been 'user' modified
+ """
+ return core.BNFunctionHasUserAnnotations(self.handle)
+
+ @property
def can_return(self) -> 'types.BoolWithConfidence':
"""Whether function can return"""
result = core.BNCanFunctionReturn(self.handle)