C/Cxx: unify static assertions with the macro ESP_STATIC_ASSERT

Closes https://github.com/espressif/esp-idf/issues/9938
This commit is contained in:
Omar Chebib
2022-10-13 12:01:27 +08:00
parent dcaa753f37
commit cd21058097
86 changed files with 506 additions and 463 deletions

View File

@@ -404,7 +404,9 @@ typedef volatile struct i2s_dev_s {
} i2s_dev_t;
extern i2s_dev_t I2S0;
#ifndef __cplusplus
_Static_assert(sizeof(i2s_dev_t)==0x100, "invalid i2s_dev_t size");
#endif
#ifdef __cplusplus
}