diff options
Diffstat (limited to 'source/core/common.h')
| -rw-r--r-- | source/core/common.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/core/common.h b/source/core/common.h index 17161ab14..5aa7b7737 100644 --- a/source/core/common.h +++ b/source/core/common.h @@ -38,9 +38,12 @@ namespace Slang } #ifdef _MSC_VER -#define SLANG_RETURN_NEVER __declspec(noreturn) +# define SLANG_RETURN_NEVER __declspec(noreturn) +//#elif SLANG_CLANG +//# define SLANG_RETURN_NEVER [[noreturn]] #else -#define SLANG_RETURN_NEVER /* empty */ +# define SLANG_RETURN_NEVER [[noreturn]] +//# define SLANG_RETURN_NEVER /* empty */ #endif #ifdef _MSC_VER |
