REF macro <BLOC/object.h>

The REF macro is a type attribute that ensures references are cleaned up when they go out of scope. It calls obj_cleanup, passing the address of the variable, when variable's scope ends.

Syntax

#define REF __attribute__((__cleanup__(obj_cleanup)))