From 551d0c365571a2e36505851f6a713464662c5fea Mon Sep 17 00:00:00 2001 From: Julius Ikkala Date: Fri, 4 Jul 2025 00:09:09 +0300 Subject: Replace SLANG_ALIGN_OF with C++11 alignof (#7523) * Replace SLANG_ALIGN_OF with C++11 alignof * Fix formatting (again) --- include/slang.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include') diff --git a/include/slang.h b/include/slang.h index 4a3af7de1..83009d2e1 100644 --- a/include/slang.h +++ b/include/slang.h @@ -263,7 +263,6 @@ convention for interface methods. #define SLANG_NO_INLINE __attribute__((noinline)) #define SLANG_FORCE_INLINE inline __attribute__((always_inline)) #define SLANG_BREAKPOINT(id) __builtin_trap(); - #define SLANG_ALIGN_OF(T) __alignof__(T) #endif // SLANG_GCC_FAMILY #if SLANG_GCC_FAMILY || defined(__clang__) @@ -280,7 +279,6 @@ convention for interface methods. #define SLANG_NO_INLINE __declspec(noinline) #define SLANG_FORCE_INLINE __forceinline #define SLANG_BREAKPOINT(id) __debugbreak(); - #define SLANG_ALIGN_OF(T) __alignof(T) #define SLANG_INT64(x) (x##i64) #define SLANG_UINT64(x) (x##ui64) -- cgit v1.2.3