diff options
| author | Peter LaFosse <peter@vector35.com> | 2023-05-22 16:05:43 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2023-05-23 16:06:25 -0400 |
| commit | 87ce2ef8339839dc391f07178f2aac6dc29e1a9d (patch) | |
| tree | b3c003d7a608baf9f993edc074bf0f190b4a8f15 /type.cpp | |
| parent | 6469044391346306295090819711124692326986 (diff) | |
Add support for changing enumeration member names by clicking 'N' on their token
Diffstat (limited to 'type.cpp')
| -rw-r--r-- | type.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2559,10 +2559,10 @@ vector<EnumerationMember> Enumeration::GetMembers() const } -vector<InstructionTextToken> Enumeration::GetTokensForValue(uint64_t value, size_t width) +vector<InstructionTextToken> Enumeration::GetTokensForValue(uint64_t value, size_t width, Ref<Type> type) { size_t count; - BNInstructionTextToken* tokens = BNGetEnumerationTokensForValue(m_object, value, width, &count); + BNInstructionTextToken* tokens = BNGetEnumerationTokensForValue(m_object, value, width, &count, type->GetObject()); return InstructionTextToken::ConvertAndFreeInstructionTextTokenList(tokens, count); } |
