10#include <source_location>
21 std::source_location loc = std::source_location::current());
30#define ERROR_CHECK(expr) error_check_callback(TAG, expr)
43 std::source_location loc = std::source_location::current());
52#define WARN_CHECK(expr) warn_check_callback(TAG, expr)
void error_check_callback(const char *tag, esp_err_t expr, std::source_location loc=std::source_location::current())
Checks if the given expression failed and aborts if so.
Definition error.cpp:11
void warn_check_callback(const char *tag, esp_err_t expr, std::source_location loc=std::source_location::current())
Checks if the given expression failed and warns if so.
Definition error.cpp:26