diff options
Diffstat (limited to 'Rx/v2/src/rxcpp/rx-includes.hpp')
-rw-r--r-- | Rx/v2/src/rxcpp/rx-includes.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Rx/v2/src/rxcpp/rx-includes.hpp b/Rx/v2/src/rxcpp/rx-includes.hpp index 1f5c5e4..1eb47db 100644 --- a/Rx/v2/src/rxcpp/rx-includes.hpp +++ b/Rx/v2/src/rxcpp/rx-includes.hpp @@ -27,6 +27,8 @@ #define RXCPP_USE_EXCEPTIONS 1 #endif +#define RXCPP_NORETURN __declspec(noreturn) + #elif defined(__clang__) #if __has_feature(cxx_rvalue_references) @@ -42,6 +44,12 @@ #define RXCPP_USE_EXCEPTIONS 1 #endif +#if __has_feature(cxx_attributes) +#define RXCPP_NORETURN [[noreturn]] +#else +#define RXCPP_NORETURN __attribute__ ((noreturn)) +#endif + #elif defined(__GNUG__) #define GCC_VERSION (__GNUC__ * 10000 + \ @@ -64,6 +72,8 @@ #define RXCPP_USE_EXCEPTIONS 1 #endif +#define RXCPP_NORETURN __attribute__ ((noreturn)) + #endif // |