use // comments for cpp compatibility.

This commit is contained in:
Kelvin Sherlock 2019-08-10 20:35:50 -04:00
parent ecd9d0b6ae
commit 548761d901
1 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,8 @@ def read_data(f, name):
ln = ln + 1
line = line.strip()
if line == "" : continue
if line[0] == "#" : continue
if line.startswith("#"): continue
if line.startswith("//"): continue
m = re.match(r'^"([^"]*)"\s+(\d+|0x[A-Fa-f0-9]+)$', line)
if not m: