From a7ff3ca06a7684a688628b9afb36398b3a4d9d45 Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Fri, 30 May 2025 09:18:28 -0700 Subject: Have PseudoCFunction use its language's type printer It was previously explicitly using the default. Retreiving it from the language will make it possible for PseudoObjCFunction to provide its own type printer. --- lang/c/pseudoc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lang/c/pseudoc.h') diff --git a/lang/c/pseudoc.h b/lang/c/pseudoc.h index 66178432..65d3fc69 100644 --- a/lang/c/pseudoc.h +++ b/lang/c/pseudoc.h @@ -5,6 +5,7 @@ class PseudoCFunction: public BinaryNinja::LanguageRepresentationFunction { BinaryNinja::Ref m_highLevelIL; + BinaryNinja::Ref m_typePrinter; enum FieldDisplayType { @@ -52,6 +53,8 @@ protected: void EndLines( const BinaryNinja::HighLevelILInstruction& instr, BinaryNinja::HighLevelILTokenEmitter& tokens) override; + BinaryNinja::TypePrinter* GetTypePrinter() const; + virtual void GetExpr_CALL_OR_TAILCALL(const BinaryNinja::HighLevelILInstruction& instr, BinaryNinja::HighLevelILTokenEmitter& tokens, BinaryNinja::DisassemblySettings* settings, BNOperatorPrecedence precedence, bool statement); -- cgit v1.3.1