From eb391d3302167157b02b007777dd552d0b4bcd70 Mon Sep 17 00:00:00 2001 From: Danil Alexeev Date: Thu, 15 Jun 2023 17:06:22 +0300 Subject: Display `BitField[Enum]` in docs to distinguish from `Enum` --- core/os/time.cpp | 3 --- core/os/time.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'core/os') diff --git a/core/os/time.cpp b/core/os/time.cpp index 038e4adc03..bad5cc2e4f 100644 --- a/core/os/time.cpp +++ b/core/os/time.cpp @@ -52,9 +52,6 @@ static const uint8_t MONTH_DAYS_TABLE[2][12] = { { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } }; -VARIANT_ENUM_CAST(Month); -VARIANT_ENUM_CAST(Weekday); - #define UNIX_TIME_TO_HMS \ uint8_t hour, minute, second; \ { \ diff --git a/core/os/time.h b/core/os/time.h index 19bc900aee..ccd2d92b8b 100644 --- a/core/os/time.h +++ b/core/os/time.h @@ -81,4 +81,7 @@ public: virtual ~Time(); }; +VARIANT_ENUM_CAST(Month); +VARIANT_ENUM_CAST(Weekday); + #endif // TIME_H -- cgit v1.2.3