Merge pull request #1228 from KhronosGroup/fix-1225

Fix MSVC warnings when building without exceptions.
This commit is contained in:
Hans-Kristian Arntzen 2019-12-03 21:23:36 +01:00 committed by GitHub
commit a2000c1107
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)