Define AMS_MAKE_ERROR_OBJ

Define Documentation

AMS_MAKE_ERROR_OBJ(Type_, Message_)

Helper macro to construct an AMSError with current file/line.

Example:

return MakeError<int>(AMS_MAKE_ERROR(AMSErrorType::InvalidArgument,
                                     "Bad configuration"));