class ByAddressType, a simple Type but passed by address even on
input. (Jack)
This commit is contained in:
parent
57a0661cb8
commit
8b3c30c0eb
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue