diff options
Diffstat (limited to 'tests/unit/stubs/esp_err.h')
| -rw-r--r-- | tests/unit/stubs/esp_err.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/stubs/esp_err.h b/tests/unit/stubs/esp_err.h index 84c3734..9bedb72 100644 --- a/tests/unit/stubs/esp_err.h +++ b/tests/unit/stubs/esp_err.h | |||
| @@ -13,6 +13,8 @@ typedef int esp_err_t; | |||
| 13 | #define ESP_ERR_NO_MEM 0x101 | 13 | #define ESP_ERR_NO_MEM 0x101 |
| 14 | #define ESP_ERR_NOT_FOUND 0x104 | 14 | #define ESP_ERR_NOT_FOUND 0x104 |
| 15 | 15 | ||
| 16 | static inline const char *esp_err_to_name(esp_err_t err) { (void)err; return "ESP_OK"; } | ||
| 17 | |||
| 16 | #define ESP_ERROR_CHECK(x) do { if ((x) != 0) { fprintf(stderr, "ESP_ERROR_CHECK failed: 0x%x\n", (int)(x)); abort(); } } while(0) | 18 | #define ESP_ERROR_CHECK(x) do { if ((x) != 0) { fprintf(stderr, "ESP_ERROR_CHECK failed: 0x%x\n", (int)(x)); abort(); } } while(0) |
| 17 | 19 | ||
| 18 | #endif | 20 | #endif |