mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-15 19:35:26 +00:00
79d6c8a377
* common: Rewrite logging based on cut down Citra logger * code: Misc fixes * core: Bring back tls handler * linker: Cleanup * config: Remove log level * logging: Enable console output by default * core: Fix windows build
22 lines
597 B
C++
22 lines
597 B
C++
// SPDX-FileCopyrightText: 2013 Dolphin Emulator Project
|
|
// SPDX-FileCopyrightText: 2014 Citra Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#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
|