Port #709 from yuzu: "common/misc: Deduplicate code in GetLastErrorMsg()"

This commit is contained in:
Lioncash 2018-07-19 09:03:30 -04:00 committed by fearlessTobi
parent 07a78a6dd2
commit 3ad1ee65ad
2 changed files with 8 additions and 12 deletions

View file

@ -4,6 +4,8 @@
#pragma once
#include <string>
#if !defined(ARCHITECTURE_x86_64)
#include <cstdlib> // for exit
#endif
@ -95,4 +97,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();