mirror of https://github.com/google/benchmark.git
Try and add MSVC NORETURN attribute again
This commit is contained in:
parent
756f069918
commit
f261c68074
|
@ -15,10 +15,12 @@
|
|||
# define COMPILER_GCC
|
||||
#endif
|
||||
|
||||
#if __has_feature(cxx_attributes) || defined(COMPILER_MSVC)
|
||||
#if __has_feature(cxx_attributes)
|
||||
# define BENCHMARK_NORETURN [[noreturn]]
|
||||
#elif defined(__GNUC__)
|
||||
# define BENCHMARK_NORETURN __attribute__((noreturn))
|
||||
#elif defined(COMPILER_MSVC)
|
||||
# define BENCHMARK_NORETURN __declspec(noreturn)
|
||||
#else
|
||||
# define BENCHMARK_NORETURN
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue