summaryrefslogtreecommitdiffstats
path: root/src/core/hle/result.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-10-13 17:01:28 +0200
committerLiam <byteslice@airmail.cc>2022-10-13 18:10:39 +0200
commitc0fb5e876d83abae86d64a19d4acfb9867ed7dc1 (patch)
tree78e06a23b051df24c2c834ae093f563fe1de97ce /src/core/hle/result.h
parentMerge pull request #9034 from liamwhite/result-macros (diff)
downloadyuzu-c0fb5e876d83abae86d64a19d4acfb9867ed7dc1.tar
yuzu-c0fb5e876d83abae86d64a19d4acfb9867ed7dc1.tar.gz
yuzu-c0fb5e876d83abae86d64a19d4acfb9867ed7dc1.tar.bz2
yuzu-c0fb5e876d83abae86d64a19d4acfb9867ed7dc1.tar.lz
yuzu-c0fb5e876d83abae86d64a19d4acfb9867ed7dc1.tar.xz
yuzu-c0fb5e876d83abae86d64a19d4acfb9867ed7dc1.tar.zst
yuzu-c0fb5e876d83abae86d64a19d4acfb9867ed7dc1.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/result.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h
index e20e0bfee..d67e68bae 100644
--- a/src/core/hle/result.h
+++ b/src/core/hle/result.h
@@ -402,9 +402,8 @@ constexpr bool EvaluateResultFailure(const Result& r) {
}
template <typename T>
-constexpr void UpdateCurrentResultReference(T result_reference, Result result) {
- ASSERT(false);
-}
+constexpr void UpdateCurrentResultReference(T result_reference, Result result) = delete;
+// Intentionally not defined
template <>
constexpr void UpdateCurrentResultReference<Result&>(Result& result_reference, Result result) {
@@ -412,7 +411,7 @@ constexpr void UpdateCurrentResultReference<Result&>(Result& result_reference, R
}
template <>
-constexpr void UpdateCurrentResultReference<Result>(Result result_reference, Result result) {}
+constexpr void UpdateCurrentResultReference<const Result>(Result result_reference, Result result) {}
} // namespace ResultImpl
#define DECLARE_CURRENT_RESULT_REFERENCE_AND_STORAGE(COUNTER_VALUE) \