mirror of
https://github.com/micropython/micropython.git
synced 2025-08-22 10:30:32 +02:00
py/makeqstrdefs.py: Process C++ files as well.
Preprocessed C++ code isn't different from C code when it comes to QSTR instances so process it as well.
This commit is contained in:
@@ -44,7 +44,7 @@ def process_file(f):
|
||||
m = re_line.match(line)
|
||||
assert m is not None
|
||||
fname = m.group(1)
|
||||
if not fname.endswith(".c"):
|
||||
if os.path.splitext(fname)[1] not in [".c", ".cpp"]:
|
||||
continue
|
||||
if fname != last_fname:
|
||||
write_out(last_fname, output)
|
||||
|
Reference in New Issue
Block a user