MCPcopy Create free account
hub / github.com/davidmoreno/rtpmidid / write_cpp_code

Function write_cpp_code

scripts/statemachine_to_cpp.py:201–206  ·  view source on GitHub ↗
(cpp_code, output_file)

Source from the content-addressed store, hash-verified

199
200
201def write_cpp_code(cpp_code, output_file):
202 if output_file == "-":
203 print(cpp_code)
204 else:
205 with open(output_file, "wt") as f:
206 f.write(cpp_code)
207
208
209def cpp_comment(text: str):

Callers 1

mainFunction · 0.85

Calls 1

printFunction · 0.85

Tested by

no test coverage detected