Merge branch 'staging/esp_static_assert_v5.0' into 'release/v5.0'

C/Cxx: unify static assertions with the macro ESP_STATIC_ASSERT (backport v5.0)

See merge request espressif/esp-idf!21695
This commit is contained in:
Zim Kalinowski
2022-12-20 20:53:02 +08:00
83 changed files with 520 additions and 532 deletions

View File

@@ -12,6 +12,7 @@
#include "esp_err.h"
#include "sdkconfig.h"
#include "esp_task.h"
#include "esp_assert.h"
#ifdef __cplusplus
extern "C" {
@@ -198,7 +199,7 @@ typedef void (* esp_bt_hci_tl_callback_t) (void *arg, uint8_t status);
}
#else
#define BT_CONTROLLER_INIT_CONFIG_DEFAULT() {0}; _Static_assert(0, "please enable bluetooth in menuconfig to use esp_bt.h");
#define BT_CONTROLLER_INIT_CONFIG_DEFAULT() {0}; ESP_STATIC_ASSERT(0, "please enable bluetooth in menuconfig to use esp_bt.h");
#endif
/**