ESP_RETURN_ON_FALSE_ISR macro
A version of ESP_RETURN_ON_FALSE() macro that can be called from ISR.
Syntax
#define ESP_RETURN_ON_FALSE_ISR(a, err_code, log_tag, format, ...) do { \
if (unlikely(!(a))) { \
ESP_EARLY_LOGE(log_tag, "%s(%d): " format, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
return err_code; \
} \
} while(0)
Examples
ESP_RETURN_ON_FALSE_ISR is referenced by 5 libraries and example projects: