Fix Clay_OnHover

This commit is contained in:
Harrison Lambeth 2025-01-26 14:53:17 -07:00
parent 4f4605eff9
commit 61ba36753b
2 changed files with 1 additions and 2 deletions

View File

@ -61,6 +61,7 @@ TYPE_MAPPING = {
'uint32_t': 'u32',
'int32_t': 'c.int32_t',
'uintptr_t': 'rawptr',
'intptr_t': 'rawptr',
'void': 'void',
}
STRUCT_TYPE_OVERRIDES = {

View File

@ -103,8 +103,6 @@ class Visitor(c_ast.NodeVisitor):
def visit_Typedef(self, node: c_ast.Typedef):
# node.show()
if hasattr(node.type, 'type') and hasattr(node.type.type, 'decls') and node.type.type.decls:
if node.name == "Clay_ErrorHandler":
logger.debug(node)
struct = {}
for decl in node.type.type.decls:
if hasattr(decl, 'type') and hasattr(decl.type, 'type') and isinstance(decl.type.type, c_ast.Union):