Go to the source code of this file.
◆ CS_CHECK_ESP
#define CS_CHECK_ESP |
( |
| x | ) |
|
Value: do { \
if (auto ret = x; ret != ESP_OK) { \
ESP_LOGE("CS-BLEMIDI", "Failed to call '%s': %s (%d)", #x, \
esp_err_to_name(ret), static_cast<int>(ret)); \
return false; \
} \
} while (0)
Definition at line 5 of file util.hpp.
◆ CS_CHECK_ZERO
#define CS_CHECK_ZERO |
( |
| x | ) |
|
Value: do { \
if (auto ret = x; ret != 0) { \
ESP_LOGE("CS-BLEMIDI", "Failed to call '%s': (%d)", #x, \
static_cast<int>(ret)); \
return false; \
} \
} while (0)
Definition at line 13 of file util.hpp.
◆ CS_CHECK_ZERO_V
#define CS_CHECK_ZERO_V |
( |
| x | ) |
|
Value: do { \
if (auto ret = x; ret != 0) { \
ESP_LOGE("CS-BLEMIDI", "Failed to call '%s': (%d)", #x, \
static_cast<int>(ret)); \
return; \
} \
} while (0)
Definition at line 21 of file util.hpp.