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:
commit
b8fcf307f1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user