summaryrefslogtreecommitdiff
path: root/python/platform.py
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 /python/platform.py
parent29c4896cda6e0933a5acb5402ff9ec4fb9ea7e90 (diff)
Make GetPlatformFunctionByName optionally strip leading underscores when matching
Diffstat (limited to 'python/platform.py')
-rw-r--r--python/platform.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/platform.py b/python/platform.py
index 0b628225..08b064fa 100644
--- a/python/platform.py
+++ b/python/platform.py
@@ -345,9 +345,9 @@ class Platform(with_metaclass(_PlatformMetaClass, object)):
return None
return types.Type(obj, platform = self)
- def get_function_by_name(self, name):
+ def get_function_by_name(self, name, exactMatch=False):
name = types.QualifiedName(name)._get_core_struct()
- obj = core.BNGetPlatformFunctionByName(self.handle, name)
+ obj = core.BNGetPlatformFunctionByName(self.handle, name, exactMatch)
if not obj:
return None
return types.Type(obj, platform = self)