mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
More readable memory allocations
This commit is contained in:
parent
802ca1d585
commit
e2b1c161cf
@ -468,7 +468,7 @@ class _MemFactory(_CallChain):
|
|||||||
array = []
|
array = []
|
||||||
if init:
|
if init:
|
||||||
array += [' = ', init]
|
array += [' = ', init]
|
||||||
self.block.code(op=['.%s.%s ' % (type[0], type[1]), name, array])
|
self.block.code(op='.%s.%s ' % (type[0], type[1]), vars=[name, array])
|
||||||
self.block.inject(name, memobj)
|
self.block.inject(name, memobj)
|
||||||
|
|
||||||
# TODO: move vec, addr here, or make this public
|
# TODO: move vec, addr here, or make this public
|
||||||
|
Loading…
Reference in New Issue
Block a user