diff options
| author | Peter LaFosse <peter@vector35.com> | 2022-01-06 13:01:42 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2022-01-06 15:01:25 -0500 |
| commit | d9661f34eec6855d495a10eaafc2a8e2679756a7 (patch) | |
| tree | 37234942e54f13c779c11370512b0eb6e1427e56 /python/function.py | |
| parent | 48f9130ad0085015187f45fde64611bb3c342f38 (diff) | |
Add Function::HasUserAnnotations
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 7 |
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) |
