Merge pull request #4021 from FearlessTobi/port-709

Port #709 from yuzu: "common/misc: Deduplicate code in GetLastErrorMsg()
This commit is contained in:
James Rowe 2018-08-02 11:00:53 -06:00 committed by GitHub
commit c771dd9813
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 11 deletions

View file

@ -4,6 +4,8 @@
#pragma once
#include <string>
#if !defined(ARCHITECTURE_x86_64)
#include <cstdlib> // for exit
#endif
@ -57,4 +59,4 @@ __declspec(dllimport) void __stdcall DebugBreak(void);
// Call directly after the command or use the error num.
// This function might change the error code.
// Defined in Misc.cpp.
const char* GetLastErrorMsg();
std::string GetLastErrorMsg();