mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-15 10:48:04 +00:00
Fix Clay_OnHover
This commit is contained in:
parent
4f4605eff9
commit
61ba36753b
@ -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 = {
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user