diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-08-20 06:06:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-19 15:06:34 -0700 |
| commit | f77a5ac9d1547a4394bba4ab8e94d905972c79b7 (patch) | |
| tree | 0d66b3c8386d8cb1e75970c93914fe2a60f03c61 /include | |
| parent | 453683bf44f2112719802eaac2b332d49eebd640 (diff) | |
Remove using SpvStorageClass values casted into AddressSpace values (#4861)
* Remove using SpvStorageClass values casted into AddressSpace values
Also removes support for specific storage classes in __target_intrinsic snippets
* remove SLANG_RETURN_NEVER macro
* squash warnings
* Make nonexhaustive switch statement error on gcc
* Add SLANG_EXHAUSTIVE_SWITCH_BEGIN/END macros
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/slang.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/slang.h b/include/slang.h index 3df31f0f0..ea62a829f 100644 --- a/include/slang.h +++ b/include/slang.h @@ -368,12 +368,6 @@ convention for interface methods. # define SLANG_OVERRIDE override # endif # endif - -// TODO(JS): Not used in previous code. Left here as may be useful on some other version. -// #define SLANG_RETURN_NEVER __attribute__((__noreturn__)) - -# define SLANG_RETURN_NEVER [[noreturn]] - # endif // SLANG_GCC_FAMILY // Visual Studio @@ -390,9 +384,6 @@ convention for interface methods. # if _MSC_VER >= 1700 # define SLANG_HAS_ENUM_CLASS 1 # endif - -# define SLANG_RETURN_NEVER __declspec(noreturn) - # endif // SLANG_VC // Set non set @@ -408,10 +399,6 @@ convention for interface methods. #endif // __cplusplus -#ifndef SLANG_RETURN_NEVER -# define SLANG_RETURN_NEVER [[noreturn]] -#endif // SLANG_RETURN_NEVER - /* Macros for detecting processor */ #if defined(_M_ARM) || defined(__ARM_EABI__) // This is special case for nVidia tegra |
