mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-09 13:50:05 +00:00
Add CompilerError constructor that accepts const char* as a parameter
Fixes #2273
This commit is contained in:
parent
03b485dc47
commit
fd3ce6e865
@ -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