Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Macros
util.hpp File Reference
#include "ble.h"
+ Include dependency graph for util.hpp:

Go to the source code of this file.

Macros

#define CS_CHECK_ESP(x)
 
#define CS_CHECK_ZERO(x)
 
#define CS_CHECK_ZERO_V(x)
 

Macro Definition Documentation

◆ 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.