Merge pull request #82799 from CedNaru/feature/expose_free_instance_binding

Expose `Object::free_instance_binding()` to GDExtension
This commit is contained in:
Rémi Verschelde 2023-10-05 10:10:58 +02:00
commit c7ed5d795e
No known key found for this signature in database
GPG key ID: C3336907360768E1
4 changed files with 19 additions and 2 deletions

View file

@ -1871,7 +1871,6 @@ bool Object::has_instance_binding(void *p_token) {
return found;
}
#ifdef TOOLS_ENABLED
void Object::free_instance_binding(void *p_token) {
bool found = false;
_instance_binding_mutex.lock();
@ -1896,6 +1895,7 @@ void Object::free_instance_binding(void *p_token) {
_instance_binding_mutex.unlock();
}
#ifdef TOOLS_ENABLED
void Object::clear_internal_extension() {
ERR_FAIL_NULL(_extension);