1 #pragma once 2 #include <sdeventplus/exception.hpp> 3 #include <stdplus/util/cexec.hpp> 4 5 #define SDEVENTPLUS_CHECK(msg, expr) \ 6 CHECK_RET(expr, [&](int ret) { throw SdEventError(ret, (msg)); }) 7