diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gen_struct_info.py | 2 | ||||
-rw-r--r-- | tools/shared.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/gen_struct_info.py b/tools/gen_struct_info.py index 203a18ec..ccc4aee6 100644 --- a/tools/gen_struct_info.py +++ b/tools/gen_struct_info.py @@ -226,7 +226,7 @@ else: walker.structs = resolve_delayed(walker.structs) with open(path, 'r') as stream: - defines = re.findall(r'(?:^|\n)#define\s+([A-Z|_]+)\s.*', stream.read()) + defines = re.findall(r'(?:^|\n)\s*#define\s+([A-Z|_|0-9]+)\s.*', stream.read()) return { 'file': path, diff --git a/tools/shared.py b/tools/shared.py index 76802eaa..554813ee 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -1452,7 +1452,7 @@ class Building: Cache.ensure() import gen_struct_info - gen_struct_info.main(['-o', info_path, path_from_root('src/struct_info.json')]) + gen_struct_info.main(['-qo', info_path, path_from_root('src/struct_info.json')]) @staticmethod def preprocess(infile, outfile): |