Skip to content

Commit

Permalink
[Fix] escape the string representation of the path, not the Path object
Browse files Browse the repository at this point in the history
  • Loading branch information
g5t committed Nov 22, 2023
1 parent 269fb87 commit e0f3391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mccode_antlr/translators/c_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def source_file_contents():
#else
int traceenabled = 0;
#endif
#define {runtime.get("name", "none").upper()} "{escape_str_for_c(include_path)}"
#define {runtime.get("name", "none").upper()} "{escape_str_for_c(str(include_path))}"
int defaultmain = {1 if config.get("default_main") else 0};
char instrument_name[] = "{source.name}";
char instrument_source[] = "{escape_str_for_c(source.source)}";
Expand Down

0 comments on commit e0f3391

Please sign in to comment.