Syntax
#define REST_CHECK(a, str, goto_tag, ...) \
do \
{ \
if (!(a)) \
{ \
ESP_LOGE(REST_TAG, "%s(%d): " str, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
goto goto_tag; \
} \
} while (0)
![]()
#define REST_CHECK(a, str, goto_tag, ...) \![]()
REST_CHECK(base_path, "wrong base path", err);![]()
REST_CHECK(rest_context, "No memory for rest context", err);![]()
REST_CHECK(httpd_start(&server, &config) == ESP_OK, "Start server failed", err_start);