summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Tools/bgen/bgen/bgenType.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tools/bgen/bgen/bgenType.py b/Tools/bgen/bgen/bgenType.py
index ba9a53e..b63a06f 100644
--- a/Tools/bgen/bgen/bgenType.py
+++ b/Tools/bgen/bgen/bgenType.py
@@ -100,6 +100,13 @@ class Type:
"""
pass
+class ByAddressType(Type):
+ "Simple type that is also passed by address for input"
+
+ def passInput(self, name):
+ return "&%s" % name
+
+
# Sometimes it's useful to define a type that's only usable as input or output parameter