Skip to content

Commit

Permalink
Hide Reference::init_ref() -- unsound, ref-counting to be done via Ref
Browse files Browse the repository at this point in the history
Closes #632
  • Loading branch information
Bromeon committed Dec 14, 2021
1 parent 23cb39a commit 101d880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings_generator/src/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl MethodSig {
}

fn skip_method(method: &GodotMethod, name: &str) -> bool {
const METHODS: &[&str] = &["free", "reference", "unreference"];
const METHODS: &[&str] = &["free", "reference", "unreference", "init_ref"];
METHODS.contains(&name) || method.is_virtual
}

Expand Down

0 comments on commit 101d880

Please sign in to comment.