summaryrefslogtreecommitdiff
path: root/src/hb-buffer-private.hh
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-08-29 13:59:16 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-08-29 14:02:37 -0400
commit965c280de09b49d711cb78d629da321c802084de (patch)
tree68f2bcf47ddaec352844b28147b249442cfd4bc1 /src/hb-buffer-private.hh
parent0ccf9b64736559a230425fd131c9eb8aa3048221 (diff)
Add HB_BUFFER_ASSERT_VAR
To be used in places we access buffer vars...
Diffstat (limited to 'src/hb-buffer-private.hh')
-rw-r--r--src/hb-buffer-private.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hb-buffer-private.hh b/src/hb-buffer-private.hh
index 9864ca2c..91e75600 100644
--- a/src/hb-buffer-private.hh
+++ b/src/hb-buffer-private.hh
@@ -129,6 +129,7 @@ struct hb_buffer_t {
HB_INTERNAL void allocate_var (unsigned int byte_i, unsigned int count, const char *owner);
HB_INTERNAL void deallocate_var (unsigned int byte_i, unsigned int count, const char *owner);
+ HB_INTERNAL void assert_var (unsigned int byte_i, unsigned int count, const char *owner);
HB_INTERNAL void deallocate_var_all (void);
HB_INTERNAL void add (hb_codepoint_t codepoint,
@@ -198,6 +199,8 @@ struct hb_buffer_t {
HB_BUFFER_XALLOCATE_VAR (b, allocate_var, var (), #var)
#define HB_BUFFER_DEALLOCATE_VAR(b, var) \
HB_BUFFER_XALLOCATE_VAR (b, deallocate_var, var (), #var)
+#define HB_BUFFER_ASSERT_VAR(b, var) \
+ HB_BUFFER_XALLOCATE_VAR (b, assert_var, var (), #var)
#endif /* HB_BUFFER_PRIVATE_HH */