From f77a5ac9d1547a4394bba4ab8e94d905972c79b7 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 20 Aug 2024 06:06:34 +0800 Subject: 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 --- include/slang.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'include') 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 -- cgit v1.2.3