Logically group and document helper functions (#3112)

This commit is contained in:
Oxan van Leeuwen
2022-01-27 08:35:42 +01:00
committed by GitHub
parent 0f3d4d9a47
commit 976f5d91ed
3 changed files with 482 additions and 434 deletions
+5
View File
@@ -8,6 +8,11 @@
namespace esphome {
// https://stackoverflow.com/questions/7858817/unpacking-a-tuple-to-call-a-matching-function-pointer/7858971#7858971
template<int...> struct seq {}; // NOLINT
template<int N, int... S> struct gens : gens<N - 1, N - 1, S...> {}; // NOLINT
template<int... S> struct gens<0, S...> { using type = seq<S...>; }; // NOLINT
#define TEMPLATABLE_VALUE_(type, name) \
protected: \
TemplatableValue<type, Ts...> name##_{}; \
+230 -226
View File
File diff suppressed because it is too large Load Diff
+247 -208
View File
File diff suppressed because it is too large Load Diff