Skip to content

Commit

Permalink
fixing ci cpptests
Browse files Browse the repository at this point in the history
  • Loading branch information
x0r committed May 3, 2024
1 parent 4720fca commit b8642d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion masm2c/cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ def render_entrypoint_c(self):
def render_function_wrappers_c(self):
return "".join(
f"""
bool {p}(m2c::_offsets, struct m2c::_STATE* _state){{return {self.groups[p]}(m2c::k{p}, _state);}}
bool {self.renderer.mangle_label(p)}(m2c::_offsets, struct m2c::_STATE* _state){{return {self.groups[p]}(m2c::k{p}, _state);}}
"""
for p in sorted(self.grouped)
)
Expand Down Expand Up @@ -1460,6 +1460,7 @@ def convert_label_data(self, v: Token, size: int=0) -> Union[Token, str]:
result = f"far_offset({g.segment},{g.name})"
else:
logging.error(f"Some unknown data size {size} for {g.name}")
result = g.original_name
elif isinstance(g, (op._equ, op._assignment)):
result = g.original_name
elif isinstance(g, (op.label, Proc)):
Expand Down

0 comments on commit b8642d3

Please sign in to comment.