Skip to content

Commit

Permalink
[FIX] template metaprogrammed compiler into submission
Browse files Browse the repository at this point in the history
  • Loading branch information
nightcall489 committed Jan 2, 2025
1 parent 2f0beaa commit 1a3539e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/btop_theme.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ namespace Theme {
extern std::unordered_map<string, array<string, 101>> gradients;

//* Return escape code for color <name>
template<size_t N>
inline const string& c(const char (&name)[N]) { return colors.at(name); }
inline const string& c(const string& name) { return colors.at(name); }

//* Return array of escape codes for color gradient <name>
Expand Down

0 comments on commit 1a3539e

Please sign in to comment.