diff --git a/src/LibHac/Result.cs b/src/LibHac/Result.cs index 86fcb228..86e90ba1 100644 --- a/src/LibHac/Result.cs +++ b/src/LibHac/Result.cs @@ -32,6 +32,17 @@ namespace LibHac } } + /// + /// A function that can contain code for logging or debugging returned results. + /// Intended to be used when returning a non-zero Result: + /// return result.Log(); + /// + /// The called value. + public Result Log() + { + return this; + } + public override bool Equals(object obj) { return obj is Result result && Equals(result);