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 --- function.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index 37192ba0..04318393 100644 --- a/function.cpp +++ b/function.cpp @@ -1051,6 +1051,12 @@ void Function::SetUserType(Type* type) } +bool Function::HasUserType() const +{ + return BNFunctionHasUserType(m_object); +} + + void Function::SetReturnType(const Confidence>& type) { BNTypeWithConfidence tc; -- cgit v1.3.1