export methods obviously

This commit is contained in:
2025-04-21 20:00:13 +07:00
parent 000df8a64b
commit 52ca9c547b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ def main():
if cursor.kind == CursorKind.CLASS_DECL and has_annotation(cursor, "export"):
print(f"Found exported class: {cursor.spelling}")
for c in cursor.get_children():
if c.kind == CursorKind.CXX_METHOD:
if c.kind == CursorKind.CXX_METHOD and has_annotation(c, "export"):
is_virtual = c.is_virtual_method()
print(f" method: {c.spelling} (virtual={is_virtual})")