Fail compile if no shapers enabled

This commit is contained in:
Behdad Esfahbod 2019-06-26 13:01:58 -07:00
parent 8786820a5a
commit cee9f6e044
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ static const hb_shaper_entry_t all_shapers[] = {
#include "hb-shaper-list.hh"
#undef HB_SHAPER_IMPLEMENT
};
static_assert (0 != ARRAY_LENGTH_CONST (all_shapers), "No shaper enabled.");
#if HB_USE_ATEXIT
static void free_static_shapers ();