mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-01 18:48:28 +02:00
Add version argument to ESPDEPRECATED macro (#2116)
This commit is contained in:
@@ -148,9 +148,9 @@ struct Color {
|
||||
static const Color WHITE;
|
||||
};
|
||||
|
||||
ESPDEPRECATED("Use Color::BLACK instead of COLOR_BLACK")
|
||||
ESPDEPRECATED("Use Color::BLACK instead of COLOR_BLACK", "v1.21")
|
||||
static const Color COLOR_BLACK(0, 0, 0, 0);
|
||||
ESPDEPRECATED("Use Color::WHITE instead of COLOR_WHITE")
|
||||
ESPDEPRECATED("Use Color::WHITE instead of COLOR_WHITE", "v1.21")
|
||||
static const Color COLOR_WHITE(255, 255, 255, 255);
|
||||
|
||||
} // namespace esphome
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#endif
|
||||
|
||||
#define HOT __attribute__((hot))
|
||||
#define ESPDEPRECATED(msg) __attribute__((deprecated(msg)))
|
||||
#define ESPDEPRECATED(msg, when) __attribute__((deprecated(msg)))
|
||||
#define ALWAYS_INLINE __attribute__((always_inline))
|
||||
#define PACKED __attribute__((packed))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user