From aff68423976e2c8a4feb97f19edf6716d271f0f0 Mon Sep 17 00:00:00 2001 From: Karuro Chari Date: Fri, 22 May 2026 11:47:53 +0100 Subject: Introduced alignof support like the one for check_sizeof --- tests/apis/check_xxx/xmake.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/apis') diff --git a/tests/apis/check_xxx/xmake.lua b/tests/apis/check_xxx/xmake.lua index 3643100ce..99745b1c7 100644 --- a/tests/apis/check_xxx/xmake.lua +++ b/tests/apis/check_xxx/xmake.lua @@ -21,6 +21,8 @@ target("foo") check_csnippets("INT_SIZE", 'printf("%d", sizeof(int)); return 0;', {output = true, number = true}) check_sizeof("LONG_SIZE", "long") check_sizeof("STRING_SIZE", "std::string", {includes = "string"}) + check_alignof("LONG_ALIGN", "long") + check_alignof("STRING_ALIGN", "std::string", {includes = "string"}) configvar_check_bigendian("IS_BIG_ENDIAN") configvar_check_cincludes("HAS_STRING_AND_STDIO_H", {"string.h", "stdio.h"}) configvar_check_ctypes("HAS_WCHAR_AND_FLOAT", {"wchar_t", "float"}) -- cgit v1.3.1