summaryrefslogtreecommitdiffstats
path: root/include/slang.h
diff options
context:
space:
mode:
authorJulius Ikkala <julius.ikkala@gmail.com>2025-07-04 00:09:09 +0300
committerGitHub <noreply@github.com>2025-07-03 21:09:09 +0000
commit551d0c365571a2e36505851f6a713464662c5fea (patch)
treee2c95e6b1016d9e129ac3b463b8a003573284f15 /include/slang.h
parentebfb8d0428b12d3a6cd6de8ebeb13297004cfbe8 (diff)
Replace SLANG_ALIGN_OF with C++11 alignof (#7523)
* Replace SLANG_ALIGN_OF with C++11 alignof * Fix formatting (again)
Diffstat (limited to 'include/slang.h')
-rw-r--r--include/slang.h2
1 files changed, 0 insertions, 2 deletions
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)