[buffer] HB_NODISCARD ensure_inplace()
This commit is contained in:
parent
cac6c86d2f
commit
bc22305b6a
|
@ -340,7 +340,7 @@ struct hb_buffer_t
|
||||||
HB_NODISCARD bool ensure (unsigned int size)
|
HB_NODISCARD bool ensure (unsigned int size)
|
||||||
{ return likely (!size || size < allocated) ? true : enlarge (size); }
|
{ return likely (!size || size < allocated) ? true : enlarge (size); }
|
||||||
|
|
||||||
bool ensure_inplace (unsigned int size)
|
HB_NODISCARD bool ensure_inplace (unsigned int size)
|
||||||
{ return likely (!size || size < allocated); }
|
{ return likely (!size || size < allocated); }
|
||||||
|
|
||||||
void assert_glyphs ()
|
void assert_glyphs ()
|
||||||
|
|
Loading…
Reference in New Issue