setup skeleton for offset calculation

This commit is contained in:
2025-10-15 04:42:38 +05:30
parent 11e8e72188
commit 69b73003ca
2 changed files with 14 additions and 0 deletions

View File

@ -71,6 +71,7 @@ def process_vmlinux_post_ast(
if len(field_elem) == 2:
field_name, field_type = field_elem
elif len(field_elem) == 3:
raise NotImplementedError("Bitfields are not supported in the current version")
field_name, field_type, bitfield_size = field_elem
field_table[field_name] = [field_type, bitfield_size]
elif hasattr(class_obj, "__annotations__"):