From 12c1766997f2596b4b1b1a6a411e4f6d56605ee7 Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Fri, 21 May 2021 01:05:04 -0400 Subject: general: Replace RESULT_SUCCESS with ResultSuccess Transition to PascalCase for result names. --- src/core/hle/result.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/core/hle/result.h') diff --git a/src/core/hle/result.h b/src/core/hle/result.h index df3283fe3..9ec124cf4 100644 --- a/src/core/hle/result.h +++ b/src/core/hle/result.h @@ -144,7 +144,7 @@ constexpr bool operator!=(const ResultCode& a, const ResultCode& b) { // Convenience functions for creating some common kinds of errors: /// The default success `ResultCode`. -constexpr ResultCode RESULT_SUCCESS(0); +constexpr ResultCode ResultSuccess(0); /** * Placeholder result code used for unknown error codes. @@ -321,7 +321,7 @@ private: */ template ResultVal MakeResult(Args&&... args) { - return ResultVal::WithCode(RESULT_SUCCESS, std::forward(args)...); + return ResultVal::WithCode(ResultSuccess, std::forward(args)...); } /** @@ -330,8 +330,7 @@ ResultVal MakeResult(Args&&... args) { */ template ResultVal> MakeResult(Arg&& arg) { - return ResultVal>::WithCode(RESULT_SUCCESS, - std::forward(arg)); + return ResultVal>::WithCode(ResultSuccess, std::forward(arg)); } /** @@ -362,7 +361,7 @@ ResultVal> MakeResult(Arg&& arg) { #define R_SUCCEEDED(res) (res.IsSuccess()) /// Evaluates a boolean expression, and succeeds if that expression is true. -#define R_SUCCEED_IF(expr) R_UNLESS(!(expr), RESULT_SUCCESS) +#define R_SUCCEED_IF(expr) R_UNLESS(!(expr), ResultSuccess) /// Evaluates a boolean expression, and returns a result unless that expression is true. #define R_UNLESS(expr, res) \ -- cgit v1.2.3