From 2b9f0586e7a37a673aa2c8ef298751c8d30b2667 Mon Sep 17 00:00:00 2001 From: stijn Date: Thu, 22 Oct 2020 14:09:33 +0200 Subject: [PATCH] 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. --- py/makeqstrdefs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/makeqstrdefs.py b/py/makeqstrdefs.py index 47afe0adb9..1db00d9633 100644 --- a/py/makeqstrdefs.py +++ b/py/makeqstrdefs.py @@ -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)