From cee9f6e044278b590694f4dff6f22eaad9371385 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 26 Jun 2019 13:01:58 -0700 Subject: [PATCH] Fail compile if no shapers enabled --- src/hb-shaper.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-shaper.cc b/src/hb-shaper.cc index 575ab1f7d..4858a6a9c 100644 --- a/src/hb-shaper.cc +++ b/src/hb-shaper.cc @@ -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 ();