Minor improvement to HB_SHAPER_DATA_DESTROY
This commit is contained in:
parent
61820bc4ca
commit
b306f9674a
|
@ -79,10 +79,9 @@ struct hb_shaper_data_t {
|
||||||
HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (HB_SHAPER_DATA_TYPE (shaper, object) *data)
|
HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (HB_SHAPER_DATA_TYPE (shaper, object) *data)
|
||||||
|
|
||||||
#define HB_SHAPER_DATA_DESTROY(shaper, object) \
|
#define HB_SHAPER_DATA_DESTROY(shaper, object) \
|
||||||
if (object->shaper_data.shaper && \
|
if (HB_SHAPER_DATA_TYPE (shaper, object) *data = HB_SHAPER_DATA (shaper, object)) \
|
||||||
object->shaper_data.shaper != HB_SHAPER_DATA_INVALID && \
|
if (data != HB_SHAPER_DATA_INVALID && data != HB_SHAPER_DATA_SUCCEEDED) \
|
||||||
object->shaper_data.shaper != HB_SHAPER_DATA_SUCCEEDED) \
|
HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (data);
|
||||||
HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (HB_SHAPER_DATA (shaper, object));
|
|
||||||
|
|
||||||
#define HB_SHAPER_DATA_ENSURE_DECLARE(shaper, object) \
|
#define HB_SHAPER_DATA_ENSURE_DECLARE(shaper, object) \
|
||||||
static inline bool \
|
static inline bool \
|
||||||
|
|
Loading…
Reference in New Issue