Luna::object_weak_ref_count

ref_count_t object_weak_ref_count(object_t object_ptr)

Fetches the weak refernece counter value of the boxed object.

Parameters

  • in object_ptr

    The object pointer.

Return value

Returns the weak reference counter value of the object.

Valid Usage

  • object_ptr must points to one memory returned by object_alloc.