diff options
| author | 2015-08-02 18:30:24 -0400 | |
|---|---|---|
| committer | 2015-08-02 18:30:24 -0400 | |
| commit | 0298b7bedd17f88430486dd502fb7923b1d10f26 (patch) | |
| tree | e56edb5024da1c03b2021c428988f8a710417565 /src/common/logging/backend.cpp | |
| parent | Handle invalid `Log::Level::Count` (diff) | |
| download | yuzu-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.cpp | 3 |
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 | } |