diff options
| author | Xusheng <xusheng@vector35.com> | 2024-12-11 14:51:36 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2024-12-11 14:51:36 +0800 |
| commit | e915356b1a1f04ad55ffe68f8582b78dc54c21fe (patch) | |
| tree | dbaafd97aadda763eb2aa7fb34569ddb232e1274 /ui/commands.h | |
| parent | 8b212f865c2da667dfe791ecf4d994e56228ea85 (diff) | |
Support setting a function type using a typedef-ed function type. Fix
Diffstat (limited to 'ui/commands.h')
| -rw-r--r-- | ui/commands.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/commands.h b/ui/commands.h index 37ed068a..08691703 100644 --- a/ui/commands.h +++ b/ui/commands.h @@ -66,6 +66,11 @@ bool IsDefaultArgumentOrParameterName(const std::string& name); std::optional<std::string> GetVariableNameFromExpr(BinaryNinja::Function* func, const BinaryNinja::HighLevelILInstruction& instr); +// Return a function type for a given type. The input type can be a function type itself, or a pointer to a function +// type, or a NTR to a pointer to a function type. This is used when the user set the type of function using a +// typedef-ed type +TypeRef GetFunctionType(BinaryViewRef data, TypeRef type); + /*! @} */ |
