Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6d394d9

Browse files
committed
Handle argref so it can be overridden more easily in a subclass.
1 parent fafc1ae commit 6d394d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tools/bgen/bgen/bgenObjectDefinition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class ObjectDefinition(GeneratorGroup):
66
basechain = "NULL"
77
tp_flags = "Py_TPFLAGS_DEFAULT"
88
basetype = None
9+
argref = "" # set to "*" if arg to <type>_New should be pointer
910

1011
def __init__(self, name, prefix, itselftype):
1112
"""ObjectDefinition constructor. May be extended, but do not override.
@@ -22,7 +23,6 @@ def __init__(self, name, prefix, itselftype):
2223
self.itselftype = itselftype
2324
self.objecttype = name + 'Object'
2425
self.typename = name + '_Type'
25-
self.argref = "" # set to "*" if arg to <type>_New should be pointer
2626
self.static = "static " # set to "" to make <type>_New and <type>_Convert public
2727
self.modulename = None
2828
if hasattr(self, "assertions"):

0 commit comments

Comments
 (0)