diff options
| author | Julius Ikkala <julius.ikkala@gmail.com> | 2025-07-04 00:09:09 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-03 21:09:09 +0000 |
| commit | 551d0c365571a2e36505851f6a713464662c5fea (patch) | |
| tree | e2c95e6b1016d9e129ac3b463b8a003573284f15 /prelude | |
| parent | ebfb8d0428b12d3a6cd6de8ebeb13297004cfbe8 (diff) | |
Replace SLANG_ALIGN_OF with C++11 alignof (#7523)
* Replace SLANG_ALIGN_OF with C++11 alignof
* Fix formatting (again)
Diffstat (limited to 'prelude')
| -rw-r--r-- | prelude/slang-cpp-prelude.h | 2 | ||||
| -rw-r--r-- | prelude/slang-cuda-prelude.h | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/prelude/slang-cpp-prelude.h b/prelude/slang-cpp-prelude.h index 6530654c1..f9c77cd91 100644 --- a/prelude/slang-cpp-prelude.h +++ b/prelude/slang-cpp-prelude.h @@ -223,7 +223,6 @@ Any platforms not detected by the above logic are now now explicitly zeroed out. // GCC Specific #if SLANG_GCC_FAMILY -#define SLANG_ALIGN_OF(T) __alignof__(T) #define SLANG_BREAKPOINT(id) __builtin_trap() @@ -234,7 +233,6 @@ Any platforms not detected by the above logic are now now explicitly zeroed out. // Microsoft VC specific #if SLANG_VC -#define SLANG_ALIGN_OF(T) __alignof(T) #define SLANG_BREAKPOINT(id) __debugbreak(); diff --git a/prelude/slang-cuda-prelude.h b/prelude/slang-cuda-prelude.h index a1d3da082..f0c053168 100644 --- a/prelude/slang-cuda-prelude.h +++ b/prelude/slang-cuda-prelude.h @@ -38,10 +38,6 @@ #define SLANG_OFFSET_OF(type, member) (size_t)((char*)&(((type*)0)->member) - (char*)0) #endif -#ifndef SLANG_ALIGN_OF -#define SLANG_ALIGN_OF(type) __alignof__(type) -#endif - // Must be large enough to cause overflow and therefore infinity #ifndef SLANG_INFINITY #define SLANG_INFINITY ((float)(1e+300 * 1e+300)) |
