summaryrefslogtreecommitdiff
path: root/highlevelil.cpp
diff options
context:
space:
mode:
authorAlexander Khosrowshahi <alexk@vector35.com>2025-06-18 17:05:13 -0400
committerAlex Khosrowshahi <71569995+spoonmilk@users.noreply.github.com>2025-06-28 14:00:17 -0700
commit4072c101bebea857722305954231e00590bfe1cc (patch)
tree83b37bad9b51f3cd624ebd458d3e612a4f967bbf /highlevelil.cpp
parent99965f6e9ad42f8f3afadf8cf32be14d11a3b6e2 (diff)
Add support for ternary simplification in Psuedo C and disable in graph view
Diffstat (limited to 'highlevelil.cpp')
-rw-r--r--highlevelil.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/highlevelil.cpp b/highlevelil.cpp
index 7e65e1e6..77a0f051 100644
--- a/highlevelil.cpp
+++ b/highlevelil.cpp
@@ -878,6 +878,11 @@ bool HighLevelILTokenEmitter::GetDefaultBracesOnSameLine() const
return BNHighLevelILTokenEmitterGetDefaultBracesOnSameLine(m_object);
}
+size_t HighLevelILTokenEmitter::GetMaxTernarySimplificationTokens() const
+{
+ return BNHighLevelILTokenEmitterGetMaxTernarySimplficationTokens(m_object);
+}
+
bool HighLevelILTokenEmitter::IsSimpleScopeAllowed() const
{