Skip to content

Commit

Permalink
Delegate majority of engine codegen to type system
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Bromeon committed Sep 17, 2023
1 parent 214f508 commit 3cd1f05
Show file tree
Hide file tree
Showing 15 changed files with 502 additions and 299 deletions.
2 changes: 1 addition & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![logo.png](assets/gdext-ferris.png)

# Rust bindings for GDExtension
# Rust bindings for Godot 4

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

Expand Down
5 changes: 2 additions & 3 deletions godot-codegen/src/central_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,8 @@ fn make_builtin_lifecycle_table(builtin_types: &BuiltinTypeMap) -> TokenStream {
},
method_decls: Vec::with_capacity(len),
method_inits: Vec::with_capacity(len),
class_count: 0,
method_count: len,
class_count: len,
method_count: 0,
};

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

table.method_decls.push(decls);
table.method_inits.push(inits);
table.class_count += 1;
}

make_named_method_table(table)
Expand Down
Loading

0 comments on commit 3cd1f05

Please sign in to comment.