Merge pull request #2274 from DmitryTsyganov/error_message_fix

Add CompilerError constructor that accepts const char* as a parameter (Fixes #2273)
This commit is contained in:
Hans-Kristian Arntzen 2024-02-05 12:54:10 +01:00 committed by GitHub
commit b8fcf307f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,6 +66,11 @@ public:
: std::runtime_error(str)
{
}
explicit CompilerError(const char *str)
: std::runtime_error(str)
{
}
};
#define SPIRV_CROSS_THROW(x) throw CompilerError(x)