mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-04 22:37:53 +00:00
290afc00d3
This allows us to avoid implicitly including <string> every time common_funcs.h is included.
21 lines
601 B
C++
21 lines
601 B
C++
// Copyright 2013 Dolphin Emulator Project / 2014 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace Common {
|
|
|
|
// Generic function to get last error message.
|
|
// Call directly after the command or use the error num.
|
|
// This function might change the error code.
|
|
// Defined in error.cpp.
|
|
[[nodiscard]] std::string GetLastErrorMsg();
|
|
|
|
// Like GetLastErrorMsg(), but passing an explicit error code.
|
|
// Defined in error.cpp.
|
|
[[nodiscard]] std::string NativeErrorToString(int e);
|
|
|
|
} // namespace Common
|