src/stdlib/vtable.c
/*=================================================
 * refcountable_release -- simple release for generic refcountable object
 *===============================================*/
- simple release for generic refcountable object
- simple release for generic refcountable object
int
refcountable_release (OBJECT obj)
{
	GENERIC_REF_OBJECT rob = (GENERIC_REF_OBJECT)obj;
	int ref = --rob->ref;
	if (!ref)
		(*rob->vtable->destroy_fnc)(&rob->vtable);
	return ref;
}
int refcountable_release ( OBJECT obj ) { GENERIC_REF_OBJECT rob = ( GENERIC_REF_OBJECT ) obj ; int ref = -- rob -> ref ; if ( ! ref ) ( * rob -> vtable -> destroy_fnc ) ( & rob -> vtable ) ; return ref ; }
refcountable_release -- simple release for generic refcountable object
refcountable_release -- simple release for generic refcountable object