mirror of
https://github.com/esphome/esphome.git
synced 2026-06-08 05:02:26 +08:00
Logically group and document helper functions (#3112)
This commit is contained in:
@@ -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
File diff suppressed because it is too large
Load Diff
+247
-208
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user