From 8dd704b019e5c065ced8842e143081be2b7c9a59 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 19 Apr 2016 12:52:57 +0300 Subject: [PATCH] py/makeqstrdefs.py: Process only CPP line-numbering info. Not stuff like "#pragma", etc. --- py/makeqstrdefs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/makeqstrdefs.py b/py/makeqstrdefs.py index 35d7658e90..0240505579 100644 --- a/py/makeqstrdefs.py +++ b/py/makeqstrdefs.py @@ -31,7 +31,7 @@ def process_file(f): last_fname = None outf = None for line in f: - if line and line[0] == "#": + if line and line[0:2] == "# ": comp = line.split() fname = comp[2] assert fname[0] == '"' and fname[-1] == '"'