mirror of
https://github.com/python/cpython
synced 2024-09-16 04:59:58 +00:00
One more mod for support of C++ classes.
This commit is contained in:
parent
82bca63c2b
commit
c49250264d
|
@ -41,7 +41,7 @@ def __init__(self, size, datatype = 'char', sizetype = 'int', sizeformat = None)
|
|||
def getArgDeclarations(self, name, reference=False, constmode=False, outmode=False):
|
||||
if reference:
|
||||
raise RuntimeError, "Cannot pass buffer types by reference"
|
||||
return (self.getBufferDeclarations(name, constmode) +
|
||||
return (self.getBufferDeclarations(name, constmode, outmode) +
|
||||
self.getSizeDeclarations(name, outmode))
|
||||
|
||||
def getBufferDeclarations(self, name, constmode=False, outmode=False):
|
||||
|
|
Loading…
Reference in a new issue