Luna::object_retain_weak

ref_count_t object_retain_weak(object_t object_ptr)

Increases the weak refernece counter value by one.

Parameters

  • in object_ptr

    The object pointer.

Return value

Returns the weak reference counter value of the object after the operation.

Valid Usage

  • object_ptr must points to one memory returned by object_alloc.