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) --- source/core/slang-rtti-info.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/core/slang-rtti-info.cpp') diff --git a/source/core/slang-rtti-info.cpp b/source/core/slang-rtti-info.cpp index 070b9c204..b30b5ac75 100644 --- a/source/core/slang-rtti-info.cpp +++ b/source/core/slang-rtti-info.cpp @@ -13,11 +13,11 @@ namespace Slang { \ RttiInfo::Kind::Invalid, 0, 0 \ } -#define SLANG_RTTI_INFO_BASIC(name, type) \ - RttiInfo \ - { \ - RttiInfo::Kind::name, RttiInfo::AlignmentType(SLANG_ALIGN_OF(type)), \ - RttiInfo::SizeType(sizeof(type)) \ +#define SLANG_RTTI_INFO_BASIC(name, type) \ + RttiInfo \ + { \ + RttiInfo::Kind::name, RttiInfo::AlignmentType(alignof(type)), \ + RttiInfo::SizeType(sizeof(type)) \ } /* static */ const RttiInfo RttiInfo::g_basicTypes[Index(Kind::CountOf)] = { -- cgit v1.2.3