Merge pull request #1228 from KhronosGroup/fix-1225
Fix MSVC warnings when building without exceptions.
This commit is contained in:
commit
a2000c1107
@ -35,6 +35,8 @@ namespace SPIRV_CROSS_NAMESPACE
|
||||
#ifdef SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS
|
||||
#if !defined(_MSC_VER) || defined(__clang__)
|
||||
[[noreturn]]
|
||||
#elif defined(_MSC_VER)
|
||||
__declspec(noreturn)
|
||||
#endif
|
||||
inline void
|
||||
report_and_abort(const std::string &msg)
|
||||
|
Loading…
Reference in New Issue
Block a user