error.h 601 B

123456789101112131415161718192021
  1. // Copyright 2013 Dolphin Emulator Project / 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <string>
  6. namespace Common {
  7. // Generic function to get last error message.
  8. // Call directly after the command or use the error num.
  9. // This function might change the error code.
  10. // Defined in error.cpp.
  11. [[nodiscard]] std::string GetLastErrorMsg();
  12. // Like GetLastErrorMsg(), but passing an explicit error code.
  13. // Defined in error.cpp.
  14. [[nodiscard]] std::string NativeErrorToString(int e);
  15. } // namespace Common