summaryrefslogtreecommitdiff
path: root/src/mesa/main/APIspecutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/APIspecutil.py')
-rw-r--r--src/mesa/main/APIspecutil.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/APIspecutil.py b/src/mesa/main/APIspecutil.py
index 27a8fe8a6d..9e604bb84b 100644
--- a/src/mesa/main/APIspecutil.py
+++ b/src/mesa/main/APIspecutil.py
@@ -222,6 +222,13 @@ def Parameters(funcname):
return params
+def FunctionPrefix(funcname):
+ """Return function specific prefix."""
+ func = __functions[funcname]
+
+ return func.prefix
+
+
def FindParamIndex(params, paramname):
"""Find the index of a named parameter."""
for i in xrange(len(params)):