diff options
author | stijn <stijn@ignitron.net> | 2020-10-22 14:09:33 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-10-29 15:27:11 +1100 |
commit | 2b9f0586e7a37a673aa2c8ef298751c8d30b2667 (patch) | |
tree | 65937f40d2c1c4ed4eccaea1d3fd08b6f73eaa62 /py | |
parent | 1b723937e3fe4012ac878ded833ff6a39455e0b8 (diff) |
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.
Diffstat (limited to 'py')
-rw-r--r-- | py/makeqstrdefs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/makeqstrdefs.py b/py/makeqstrdefs.py index 47afe0adb..1db00d963 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) |