mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Improve & fix Mono build
- Fix C++ compile errors about pending variable renames after the `Reference` to `RefCount` change. - Fix C# compile errors due to the recent rename of `EnablePlugin()` and `Build()`, which are now underscore-prefixed in bindings. - Additional rename: `godot_icall_Reference_Dtor` to `godot_icall_RefCounted_Dtor`.
This commit is contained in:
parent
558f13e4f7
commit
f59488e94e
6 changed files with 15 additions and 15 deletions
|
@ -1444,7 +1444,7 @@ bool CSharpLanguage::setup_csharp_script_binding(CSharpScriptBinding &r_script_b
|
|||
// Unsafe refcount increment. The managed instance also counts as a reference.
|
||||
// This way if the unmanaged world has no references to our owner
|
||||
// but the managed instance is alive, the refcount will be 1 instead of 0.
|
||||
// See: godot_icall_Reference_Dtor(MonoObject *p_obj, Object *p_ptr)
|
||||
// See: godot_icall_RefCounted_Dtor(MonoObject *p_obj, Object *p_ptr)
|
||||
|
||||
rc->reference();
|
||||
CSharpLanguage::get_singleton()->post_unsafe_reference(rc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue