commit | aab0de50e23727b69fa8c3d4e05c50c114c62835 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Tue Apr 19 00:32:19 2011 -0400 |
committer | Behdad Esfahbod <behdad@behdad.org> | Tue Apr 19 00:32:19 2011 -0400 |
tree | bb46aa705d1f1d5104cb0beb4e1209d37c565cec | |
parent | 02a534b23f2d1e7475109563b9f61221ed020e8b [diff] [blame] |
[API] Add hb_buffer_allocation_successful() Returns the error status of the buffer.
diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index 11639ef..68ef594 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc
@@ -260,6 +260,12 @@ return _hb_buffer_ensure (buffer, size); } +hb_bool_t +hb_buffer_allocation_successful (hb_buffer_t *buffer) +{ + return !buffer->in_error; +} + void hb_buffer_add_glyph (hb_buffer_t *buffer, hb_codepoint_t codepoint,