diff --git a/spirv_cross_error_handling.hpp b/spirv_cross_error_handling.hpp index e96ebb9a..91e6cf4f 100644 --- a/spirv_cross_error_handling.hpp +++ b/spirv_cross_error_handling.hpp @@ -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)