diff options
| author | Peter LaFosse <peter@vector35.com> | 2023-02-08 08:56:03 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2023-02-08 11:52:37 -0500 |
| commit | 0b752f36c9d3b6bcb51a05fdcf5b38633d38bdbd (patch) | |
| tree | 74551bbf2d65f3d21a159ee006df7da45e93e398 /function.cpp | |
| parent | c2f7f8acadb4aec2c4df646528692fc9bfe1abd1 (diff) | |
Add boolean for Function.user_type to indicate if a user type has been set
Diffstat (limited to 'function.cpp')
| -rw-r--r-- | function.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<Ref<Type>>& type) { BNTypeWithConfidence tc; |
