diff options
| author | 2021-09-12 12:01:23 -0400 | |
|---|---|---|
| committer | 2021-09-12 12:01:23 -0400 | |
| commit | 74030eb4277c179c62189a978b693e081bfe7c4c (patch) | |
| tree | e2f4ba2fa65f8b9bdfbd86352a65539f46d9193f /src/common/error.cpp | |
| parent | Merge pull request #6986 from Morph1984/version-update (diff) | |
| parent | shader_environment: Add missing <algorithm> include (diff) | |
| download | yuzu-74030eb4277c179c62189a978b693e081bfe7c4c.tar.gz yuzu-74030eb4277c179c62189a978b693e081bfe7c4c.tar.xz yuzu-74030eb4277c179c62189a978b693e081bfe7c4c.zip | |
Merge pull request #6987 from Morph1984/common-error
common: Move error handling functions out of common_funcs
Diffstat (limited to '')
| -rw-r--r-- | src/common/error.cpp (renamed from src/common/misc.cpp) | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/misc.cpp b/src/common/error.cpp index 495385b9e..d4455e310 100644 --- a/src/common/misc.cpp +++ b/src/common/error.cpp | |||
| @@ -10,7 +10,9 @@ | |||
| 10 | #include <cstring> | 10 | #include <cstring> |
| 11 | #endif | 11 | #endif |
| 12 | 12 | ||
| 13 | #include "common/common_funcs.h" | 13 | #include "common/error.h" |
| 14 | |||
| 15 | namespace Common { | ||
| 14 | 16 | ||
| 15 | std::string NativeErrorToString(int e) { | 17 | std::string NativeErrorToString(int e) { |
| 16 | #ifdef _WIN32 | 18 | #ifdef _WIN32 |
| @@ -50,3 +52,5 @@ std::string GetLastErrorMsg() { | |||
| 50 | return NativeErrorToString(errno); | 52 | return NativeErrorToString(errno); |
| 51 | #endif | 53 | #endif |
| 52 | } | 54 | } |
| 55 | |||
| 56 | } // namespace Common | ||