Open JeffMill opened 1 year ago
THROW_WIN32_MSG() exists, but not THROW_WIN32_IF_MSG to avoid someone needing to write:
THROW_HR_IF_MSG(HRESULT_FROM_WIN32(ERROR_NOT_FOUND), (count !=1), "something")
Seems reasonable. A lot of scenarios are covered by things like THROW_IF_WIN32_BOOL_FALSE to cover the win32 APIs that return 0 on failure and nonzero on success.
THROW_IF_WIN32_BOOL_FALSE
THROW_WIN32_MSG() exists, but not THROW_WIN32_IF_MSG to avoid someone needing to write: