fix(ll): fix cpp compile error

Merges https://github.com/espressif/esp-idf/pull/12093

fix(ll): remove FLAG_ATTR macro

Such kind of operator overload will not work because C++ thinks such overload is ambiguous and it still prefer the built-in one which accepts and returns integer. Manually force type conversion seems to be unavoidable.
This commit is contained in:
Planck (Lu Zeyu)
2023-09-04 17:26:13 +08:00
parent 3717963618
commit 255d499884
114 changed files with 623 additions and 564 deletions

View File

@@ -9,6 +9,7 @@
#include "assert.h"
/* Since IDF v5.0, C17 standard is used, which supports both _Static_assert and static_assert syntax */
/* Please do not use `_Static_assert` for C++ compatibility */
#define ESP_STATIC_ASSERT static_assert
/* Assert at compile time if possible, runtime otherwise */