eif_protect

    Contents
    1. Synopsis
    2. Description
    3. Return value
    4. Conformance
    5. Compatibility

Synopsis

#include "eif_hector.h" EIF_OBJECT eif_protect (EIF_REFERENCE ref);

Description

The eif_protect function protects the Eiffel reference ref from the garbage collector. It keeps a reference on it so that the garbage collector does not collect it if it is not referenced from Eiffel any longer.

Return value

The eif_protect function returns an EIF_OBJECT. This EIF_OBJECT can be used later on to access ref with eif_access.

Conformance

ISE Eiffel 4.4 and later.

Compatibility

eif_protect is equivalent to henter, which is deprecated.

See Also:
eif_access
eif_adopt
eif_wean

f335a229-93c4-4f3f-6fca-9c4c190745c4