mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 03:30:05 -05:00
More readable memory allocations
This commit is contained in:
parent
802ca1d585
commit
e2b1c161cf
@ -468,7 +468,7 @@ class _MemFactory(_CallChain):
|
||||
array = []
|
||||
if 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)
|
||||
|
||||
# TODO: move vec, addr here, or make this public
|
||||
|
Loading…
Reference in New Issue
Block a user