88//! Runtime checks and inspection of Godot classes.
99
1010use crate :: builtin:: { GString , StringName , Variant , VariantType } ;
11- #[ cfg( checks_at_least = "paranoid " ) ]
11+ #[ cfg( safeguards_at_least = "strict " ) ]
1212use crate :: classes:: { ClassDb , Object } ;
1313use crate :: meta:: CallContext ;
14- #[ cfg( checks_at_least = "paranoid " ) ]
14+ #[ cfg( safeguards_at_least = "strict " ) ]
1515use crate :: meta:: ClassId ;
1616use crate :: obj:: { bounds, Bounds , Gd , GodotClass , InstanceId , RawGd , Singleton } ;
1717use crate :: sys;
@@ -191,7 +191,7 @@ where
191191 Gd :: < T > :: from_obj_sys ( object_ptr)
192192}
193193
194- #[ cfg( checks_at_least = "balanced" ) ]
194+ #[ cfg( safeguards_at_least = "balanced" ) ]
195195pub ( crate ) fn ensure_object_alive (
196196 instance_id : InstanceId ,
197197 old_object_ptr : sys:: GDExtensionObjectPtr ,
@@ -212,7 +212,7 @@ pub(crate) fn ensure_object_alive(
212212 ) ;
213213}
214214
215- #[ cfg( checks_at_least = "paranoid " ) ]
215+ #[ cfg( safeguards_at_least = "strict " ) ]
216216pub ( crate ) fn ensure_object_inherits ( derived : ClassId , base : ClassId , instance_id : InstanceId ) {
217217 if derived == base
218218 || base == Object :: class_id ( ) // for Object base, anything inherits by definition
@@ -227,7 +227,7 @@ pub(crate) fn ensure_object_inherits(derived: ClassId, base: ClassId, instance_i
227227 )
228228}
229229
230- #[ cfg( checks_at_least = "paranoid " ) ]
230+ #[ cfg( safeguards_at_least = "strict " ) ]
231231pub ( crate ) fn ensure_binding_not_null < T > ( binding : sys:: GDExtensionClassInstancePtr )
232232where
233233 T : GodotClass + Bounds < Declarer = bounds:: DeclUser > ,
@@ -255,7 +255,7 @@ where
255255// Implementation of this file
256256
257257/// Checks if `derived` inherits from `base`, using a cache for _successful_ queries.
258- #[ cfg( checks_at_least = "paranoid " ) ]
258+ #[ cfg( safeguards_at_least = "strict " ) ]
259259fn is_derived_base_cached ( derived : ClassId , base : ClassId ) -> bool {
260260 use std:: collections:: HashSet ;
261261
0 commit comments