diff options
Diffstat (limited to 'highlevelil.cpp')
| -rw-r--r-- | highlevelil.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/highlevelil.cpp b/highlevelil.cpp index 96ed664a..91ce5cfc 100644 --- a/highlevelil.cpp +++ b/highlevelil.cpp @@ -821,6 +821,15 @@ vector<InstructionTextToken> HighLevelILTokenEmitter::GetCurrentTokens() const } +void HighLevelILTokenEmitter::SetCurrentTokens(const std::vector<InstructionTextToken>& newTokens) +{ + size_t count; + auto* tokens = AllocAPIObjectList<InstructionTextToken>(newTokens, &count); + BNHighLevelILTokenEmitterSetCurrentTokens(m_object, tokens, count); + FreeAPIObjectList<InstructionTextToken>(tokens, count); +} + + void HighLevelILTokenEmitter::SetBraceRequirement(BNBraceRequirement required) { BNHighLevelILTokenEmitterSetBraceRequirement(m_object, required); |
