Move hb_reference_count_t from macros to inline methods