Add HB_NDEBUG
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 25 Feb 2016 04:56:47 +0000 (13:56 +0900)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 25 Feb 2016 04:56:47 +0000 (13:56 +0900)
commit91dd11565221bdb108c138662ea013aac14bb968
tree5a211f4609c12a5717c6d93141ac8f48cc21043d
parent75568b0a7f811ea18e23037735ec8541a7431f88
Add HB_NDEBUG

API changes:
- If NDEBUG is defined, define HB_NDEBUG
- Disable costlier sanity checks if HB_NDEBUG is defined.

In 1.2.3 introduced some code to disable costly sanity checks if
NDEBUG is defined.  NDEBUG, however, disables all assert()s as
well.  With HB_NDEBUG, one can disable costlier checks but keep
assert()s.

I'll probably add a way to define HB_NDEBUG automatically in
release tarballs.  But for now, production systems that do NOT
define NDEBUG, are encouraged to define HB_NDEBUG for our build.
src/Makefile.am
src/hb-buffer-private.hh
src/hb-buffer.cc
src/hb-private.hh