Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CompilerError constructor that accepts const char* as a parameter (Fixes #2273) #2274

Merged

Conversation

DmitryTsyganov
Copy link
Contributor

@DmitryTsyganov DmitryTsyganov commented Feb 1, 2024

No temporary std::string is created when const char* is passed to SPIRV_CROSS_THROW (like this: SPIRV_CROSS_THROW("Cannot resolve expression type.");).
This helps to bypass the issue #2273 where using _HAS_EXCEPTIONS=0 can lead to invalid error messages when compiled with MSVC.

@CLAassistant
Copy link

CLAassistant commented Feb 1, 2024

CLA assistant check
All committers have signed the CLA.

@HansKristian-Work HansKristian-Work merged commit b8fcf30 into KhronosGroup:main Feb 5, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants