summaryrefslogtreecommitdiff
path: root/src/common/error.cpp
diff options
context:
space:
mode:
authorGravatar Morph2021-09-08 14:36:20 -0400
committerGravatar Morph2021-09-11 17:19:14 -0400
commit290afc00d36bbdcdc67d66a4586fd2f188734ad3 (patch)
treed4f9a8eae42dd93ff1e7393ffea03b30faeab125 /src/common/error.cpp
parentMerge pull request #6846 from ameerj/nvdec-gpu-decode (diff)
downloadyuzu-290afc00d36bbdcdc67d66a4586fd2f188734ad3.tar.gz
yuzu-290afc00d36bbdcdc67d66a4586fd2f188734ad3.tar.xz
yuzu-290afc00d36bbdcdc67d66a4586fd2f188734ad3.zip
common: Move error handling to error.cpp/h
This allows us to avoid implicitly including <string> every time common_funcs.h is included.
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
15namespace Common {
14 16
15std::string NativeErrorToString(int e) { 17std::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