summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/function.py')
-rw-r--r--python/function.py5
1 files changed, 5 insertions, 0 deletions
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: