d_a_obj_catdoor first pass

This commit is contained in:
theo3
2023-01-01 22:48:53 -08:00
parent e5ff41975d
commit 78e8b01174
2 changed files with 182 additions and 165 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ def import_c_file(in_file) -> str:
defines.add(guard_match[1])
print("Processing file", in_file)
include_match = include_pattern.match(line.strip())
if include_match:
if include_match and not include_match[1].endswith(".s"):
out_text += f"/* \"{in_file}\" line {idx} \"{include_match[1]}\" */\n"
out_text += import_h_file(include_match[1], os.path.dirname(in_file))
out_text += f"/* end \"{include_match[1]}\" */\n"