[buffer] HB_NODISCARD enlarge()
This commit is contained in:
parent
3f1998a065
commit
d8028a0762
|
@ -335,7 +335,7 @@ struct hb_buffer_t
|
|||
/* Internal methods */
|
||||
HB_INTERNAL bool move_to (unsigned int i); /* i is output-buffer index. */
|
||||
|
||||
HB_INTERNAL bool enlarge (unsigned int size);
|
||||
HB_INTERNAL HB_NODISCARD bool enlarge (unsigned int size);
|
||||
|
||||
bool ensure (unsigned int size)
|
||||
{ return likely (!size || size < allocated) ? true : enlarge (size); }
|
||||
|
|
Loading…
Reference in New Issue