aboutsummaryrefslogtreecommitdiff
path: root/tools/gen_struct_info.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gen_struct_info.py')
-rw-r--r--tools/gen_struct_info.py2
1 files changed, 1 insertions, 1 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,