Add CompilerError constructor that accepts const char* as a parameter

Fixes #2273
This commit is contained in:
DmitryTsyganov 2024-02-01 17:35:10 +01:00
parent 03b485dc47
commit fd3ce6e865

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)