summaryrefslogtreecommitdiff
path: root/platform.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2019-08-28 06:59:45 -0400
committerPeter LaFosse <peter@vector35.com>2019-08-30 14:26:06 -0400
commit4c8271a8aae5897785904adb48c911818f2dd301 (patch)
treed0851270beeea488b32aee4a5c0df2537674ded4 /platform.cpp
parent29c4896cda6e0933a5acb5402ff9ec4fb9ea7e90 (diff)
Make GetPlatformFunctionByName optionally strip leading underscores when matching
Diffstat (limited to 'platform.cpp')
-rw-r--r--platform.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform.cpp b/platform.cpp
index d5067ea8..3bb1f6c5 100644
--- a/platform.cpp
+++ b/platform.cpp
@@ -353,10 +353,10 @@ Ref<Type> Platform::GetVariableByName(const QualifiedName& name)
}
-Ref<Type> Platform::GetFunctionByName(const QualifiedName& name)
+Ref<Type> 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;