| 531 | } |
| 532 | |
| 533 | void CSharpLanguage::pre_unsafe_unreference(Object *p_obj) { |
| 534 | #ifdef DEBUG_ENABLED |
| 535 | MutexLock lock(unsafe_object_references_lock); |
| 536 | ObjectID id = p_obj->get_instance_id(); |
| 537 | HashMap<ObjectID, int>::Iterator elem = unsafe_object_references.find(id); |
| 538 | ERR_FAIL_NULL(elem); |
| 539 | if (--elem->value == 0) { |
| 540 | unsafe_object_references.remove(elem); |
| 541 | } |
| 542 | #endif // DEBUG_ENABLED |
| 543 | } |
| 544 | |
| 545 | void CSharpLanguage::frame() { |
| 546 | if (gdmono && gdmono->is_runtime_initialized() && GDMonoCache::godot_api_cache_updated) { |
no test coverage detected