Update reccmp.py (#236)

Support indented comments for 'TEMPLATE'd functions.
This commit is contained in:
Nathan M Gilbert
2023-10-23 07:17:28 -04:00
committed by GitHub
parent 4cc6b9b8ec
commit d232c82e70

View File

@@ -434,7 +434,7 @@ for subdir, dirs, files in os.walk(source):
line = srcfile.readline() line = srcfile.readline()
line_no += 1 line_no += 1
# Name comes after // comment # Name comes after // comment
name = line[2:].strip() name = line.strip()[2:].strip()
recinfo = syminfo.get_recompiled_address_from_name(name) recinfo = syminfo.get_recompiled_address_from_name(name)
if not recinfo: if not recinfo: