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