commit | eccec3ef1c54bc118acbc8f9c3ce7b2cdaa340c5 | [log] [tgz] |
---|---|---|
author | José Fonseca <jose.r.fonseca@gmail.com> | Sun Feb 20 09:01:25 2011 +0000 |
committer | José Fonseca <jose.r.fonseca@gmail.com> | Tue Feb 22 07:15:58 2011 +0000 |
tree | 68e5614df354c0a2ebe61200b4025d0792a1d7d8 | |
parent | 5575eae328c5ac50887980ca7c0874abe8fe0058 [diff] [blame] |
get_function_by_name shortcut
diff --git a/stdapi.py b/stdapi.py index 79df2c3..7d0c982 100644 --- a/stdapi.py +++ b/stdapi.py
@@ -543,6 +543,12 @@ def add_interfaces(self, interfaces): self.interfaces.extend(interfaces) + def get_function_by_name(self, name): + for function in self.functions: + if function.name == name: + return function + return None + Bool = Literal("bool", "Bool") SChar = Literal("signed char", "SInt")