summaryrefslogtreecommitdiff
path: root/Source/Core/Common/CommonFuncs.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2025-10-05 00:06:08 +0200
committerGitHub <noreply@github.com>2025-10-05 00:06:08 +0200
commite1fd8c8e8c5c6770a420d3dbd0b802a81bc64812 (patch)
tree17de4230ee8d6cfea8f2f70db37f0c6ef594ca28 /Source/Core/Common/CommonFuncs.cpp
parent9c97498f4b2982221faf17e0cf97af43a6fa0984 (diff)
parent38dc8ae3b6fb5ace9e2415d8930fbb305c85b2c6 (diff)
Merge pull request #13957 from jordan-woyak/wmreal-iolinux-fixes
WiimoteReal/IOLinux: Improvements, fixes, and code cleanups.
Diffstat (limited to 'Source/Core/Common/CommonFuncs.cpp')
-rw-r--r--Source/Core/Common/CommonFuncs.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/Core/Common/CommonFuncs.cpp b/Source/Core/Common/CommonFuncs.cpp
index 91eed700ab..9d0b3c97b7 100644
--- a/Source/Core/Common/CommonFuncs.cpp
+++ b/Source/Core/Common/CommonFuncs.cpp
@@ -43,13 +43,18 @@ const char* StrErrorWrapper(int error, char* buffer, std::size_t length)
#endif
}
+std::string StrerrorString(int error)
+{
+ char error_message[BUFFER_SIZE];
+
+ return StrErrorWrapper(error, error_message, BUFFER_SIZE);
+}
+
// Wrapper function to get last strerror(errno) string.
// This function might change the error code.
std::string LastStrerrorString()
{
- char error_message[BUFFER_SIZE];
-
- return StrErrorWrapper(errno, error_message, BUFFER_SIZE);
+ return StrerrorString(errno);
}
#ifdef _WIN32