summaryrefslogtreecommitdiff
path: root/src/common/logging/backend.cpp
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat2015-08-02 18:30:24 -0400
committerGravatar Benjamin Barenblat2015-08-02 18:30:24 -0400
commit0298b7bedd17f88430486dd502fb7923b1d10f26 (patch)
treee56edb5024da1c03b2021c428988f8a710417565 /src/common/logging/backend.cpp
parentHandle invalid `Log::Level::Count` (diff)
downloadyuzu-0298b7bedd17f88430486dd502fb7923b1d10f26.tar.gz
yuzu-0298b7bedd17f88430486dd502fb7923b1d10f26.tar.xz
yuzu-0298b7bedd17f88430486dd502fb7923b1d10f26.zip
Use UNREACHABLE macro for impossible cases in previous commit
Use the UNREACHABLE macro instead of `ASSERT(false, ...);`.
Diffstat (limited to 'src/common/logging/backend.cpp')
-rw-r--r--src/common/logging/backend.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index 68580e1c0..0a081e7d4 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -80,8 +80,7 @@ const char* GetLevelName(Level log_level) {
80 LVL(Error); 80 LVL(Error);
81 LVL(Critical); 81 LVL(Critical);
82 case Level::Count: 82 case Level::Count:
83 ASSERT_MSG(false, "invalid log level"); 83 UNREACHABLE();
84 return "Unknown";
85 } 84 }
86#undef LVL 85#undef LVL
87} 86}