Skip to content

Commit b980875

Browse files
committed
Delegate majority of engine codegen to type system
Now uses traits instead of generated code for parameter/return passing. This significantly reduces the amount of generated code, at the cost of more monomorphizations.
1 parent 214f508 commit b980875

File tree

15 files changed

+504
-300
lines changed

15 files changed

+504
-300
lines changed

ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![logo.png](assets/gdext-ferris.png)
22

3-
# Rust bindings for GDExtension
3+
# Rust bindings for Godot 4
44

55
_**[Website]** | **[API Docs]** | [Discord] | [Mastodon] | [Twitter]_
66

godot-codegen/src/central_generator.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,8 @@ fn make_builtin_lifecycle_table(builtin_types: &BuiltinTypeMap) -> TokenStream {
689689
},
690690
method_decls: Vec::with_capacity(len),
691691
method_inits: Vec::with_capacity(len),
692-
class_count: 0,
693-
method_count: len,
692+
class_count: len,
693+
method_count: 0,
694694
};
695695

696696
// Note: NIL is not part of this iteration, it will be added manually
@@ -705,7 +705,6 @@ fn make_builtin_lifecycle_table(builtin_types: &BuiltinTypeMap) -> TokenStream {
705705

706706
table.method_decls.push(decls);
707707
table.method_inits.push(inits);
708-
table.class_count += 1;
709708
}
710709

711710
make_named_method_table(table)

0 commit comments

Comments
 (0)