From 0b752f36c9d3b6bcb51a05fdcf5b38633d38bdbd Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 8 Feb 2023 08:56:03 -0500 Subject: Add boolean for Function.user_type to indicate if a user type has been set --- python/function.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python') diff --git a/python/function.py b/python/function.py index 73b08b48..80dd3968 100644 --- a/python/function.py +++ b/python/function.py @@ -2512,6 +2512,11 @@ class Function: (value, _) = self.view.parse_type_string(value) core.BNSetFunctionUserType(self.handle, value.handle) + @property + def user_type(self) -> bool: + """True if the function has a user-defined type""" + return core.BNFunctionHasUserType(self.handle) + def set_auto_return_type(self, value: StringOrType) -> None: type_conf = core.BNTypeWithConfidence() if value is None: -- cgit v1.3.1