#ifndef ENABLE_COLORS
constexpr StyleData(const char *_name, Style,
- short, short, attr_t, attr_t _mono)
+ short, short, attr_t, attr_t _mono) noexcept
:name(_name), mono(_mono) {}
#endif
};
};
static constexpr auto &
-GetStyle(Style style)
+GetStyle(Style style) noexcept
{
return styles[size_t(style)];
}
gcc_pure
static Style
-StyleByName(const char *name)
+StyleByName(const char *name) noexcept
{
for (size_t i = 1; i < size_t(Style::END); ++i)
if (!strcasecmp(styles[i].name, name))
}
static void
-colors_update_pair(Style style)
+colors_update_pair(Style style) noexcept
{
auto &data = GetStyle(style);
}
void
-ApplyStyles()
+ApplyStyles() noexcept
{
if (has_colors()) {
/* initialize color support */
#endif
void
-SelectStyle(WINDOW *w, Style style)
+SelectStyle(WINDOW *w, Style style) noexcept
{
const auto &data = GetStyle(style);
ModifyStyle(const char *name, const char *value);
void
-ApplyStyles();
+ApplyStyles() noexcept;
+
#endif
void
-SelectStyle(WINDOW *w, Style style);
+SelectStyle(WINDOW *w, Style style) noexcept;
#endif