Skip to content

Commit c48849d

Browse files
committed
fixup
1 parent 4d4e017 commit c48849d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: swig/python/codegen/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def translate(function: Union[str, Callable]) -> str:
5454
for mem in module_members:
5555
if key == mem[0]:
5656
prepend_c_source += f"constexpr auto {mem[0]} = {mem[1]};\n"
57+
break
5758
return prepend_c_source + codegen(tree)
5859
else:
5960
raise CodeGenException(f"Error: translate function requires either a source string or Callable")

0 commit comments

Comments
 (0)