Skip to content
Snippets Groups Projects
Commit 66cac38b authored by Jammer, Tim's avatar Jammer, Tim
Browse files

fix AllocCall generation

parent 04bdf0ba
Branches
No related tags found
1 merge request!4Devel tj
......@@ -2,7 +2,7 @@
alloc_template = """
@{NAME}@ = (@{TYPE}@*) @{FUNCTION}@(@{NUM}@ @{SEP}@ sizeof(@{TYPE}@));
@{TYPE}@* @{NAME}@ = (@{TYPE}@*) @{FUNCTION}@(@{NUM}@ @{SEP}@ sizeof(@{TYPE}@));
"""
"""
......@@ -50,7 +50,7 @@ class AllocCall:
.replace("@{TYPE}@", self._type)
.replace("@{FUNCTION}@", func)
.replace("@{NUM}@", str(self._num_elements))
.replace("@{SEP}", delim))
.replace("@{SEP}@", delim))
def set_num_elements(self, num_elements):
self._num_elements = num_elements
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment