#define TOUPPER(ch) (((ch) >= 'a' && (ch) <= 'z') ? ((ch) - 'a' + 'A') : (ch))
#endif
+#if defined(ICONS_GENERATE) || defined(ICONS_ENABLED)
static uint16_t
icon_ext_hash(const char *str)
{
ASSERT(hash < ARRLEN(table));
return hash;
}
+#endif
#ifndef INCLUDE_ICONS_H
#define INCLUDE_ICONS_H
+#if defined(ICONS_GENERATE) || defined(ICONS_ENABLED)
+
/*
* 1st arg = ICONS_IN_TERM
*
COLOR_X(COLOR_VIM, 28) /* Green4 */ \
/* X-Macro: https://en.wikipedia.org/wiki/X_Macro */
-#define COLOR_X(N, V) N = V,
+#define COLOR_X(N, V) N = (V),
enum { COLOR_LIST };
#undef COLOR_X
#define COLOR_X(N, V) N,
};
#endif
+#endif /* defined(ICONS_GENERATE) || defined(ICONS_ENABLED) */
+
#endif /* INCLUDE_ICONS_H */