From 4c8271a8aae5897785904adb48c911818f2dd301 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 28 Aug 2019 06:59:45 -0400 Subject: Make GetPlatformFunctionByName optionally strip leading underscores when matching --- platform.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform.cpp') diff --git a/platform.cpp b/platform.cpp index d5067ea8..3bb1f6c5 100644 --- a/platform.cpp +++ b/platform.cpp @@ -353,10 +353,10 @@ Ref Platform::GetVariableByName(const QualifiedName& name) } -Ref Platform::GetFunctionByName(const QualifiedName& name) +Ref Platform::GetFunctionByName(const QualifiedName& name, bool exactMatch) { BNQualifiedName nameObj = name.GetAPIObject(); - BNType* type = BNGetPlatformFunctionByName(m_object, &nameObj); + BNType* type = BNGetPlatformFunctionByName(m_object, &nameObj, exactMatch); QualifiedName::FreeAPIObject(&nameObj); if (!type) return nullptr; -- cgit v1.3.1