Next: , Previous: , Up: Value methods   [Contents][Index]


24.6 Reference counting

Mutator function: Marpa_Value marpa_v_ref (Marpa_Value v)

On success, increases the reference count by 1. Not needed by most applications.

Return value: On success, v. On hard failure, NULL.

Destructor function: void marpa_v_unref (Marpa_Value v)

Decreases the reference count by 1, destroying v once the reference count reaches zero.