mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-27 14:01:21 -08:00
shader/exception: Fix compilation errors on gcc
This commit is contained in:
parent
b6c087496b
commit
871c9f1ced
@ -15,22 +15,22 @@ namespace Shader {
|
|||||||
|
|
||||||
class Exception : public std::exception {
|
class Exception : public std::exception {
|
||||||
public:
|
public:
|
||||||
explicit Exception(std::string message_) noexcept : message{std::move(message_)} {}
|
explicit Exception(std::string message) noexcept : err_message{std::move(message)} {}
|
||||||
|
|
||||||
const char* what() const override {
|
const char* what() const noexcept override {
|
||||||
return message.c_str();
|
return err_message.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Prepend(std::string_view prepend) {
|
void Prepend(std::string_view prepend) {
|
||||||
message.insert(0, prepend);
|
err_message.insert(0, prepend);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Append(std::string_view append) {
|
void Append(std::string_view append) {
|
||||||
message += append;
|
err_message += append;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string message;
|
std::string err_message;
|
||||||
};
|
};
|
||||||
|
|
||||||
class LogicError : public Exception {
|
class LogicError : public Exception {
|
||||||
|
Loading…
Reference in New Issue
Block a user