From d9661f34eec6855d495a10eaafc2a8e2679756a7 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Thu, 6 Jan 2022 13:01:42 -0500 Subject: Add Function::HasUserAnnotations --- python/function.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'python') diff --git a/python/function.py b/python/function.py index 332b5769..d3b9ea88 100644 --- a/python/function.py +++ b/python/function.py @@ -496,6 +496,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""" -- cgit v1.3.1