common: add macro for simultaneously checking data type size for ILP32 and LP64

This commit is contained in:
Alibek Omarov
2024-08-21 11:59:02 +03:00
parent 7fc9ee154a
commit 842e494fa6
9 changed files with 39 additions and 44 deletions

View File

@@ -95,12 +95,7 @@ typedef struct customization_s
#define FCUST_WIPEDATA ( 1<<1 )
#define FCUST_IGNOREINIT ( 1<<2 )
#if !XASH_64BIT
STATIC_ASSERT( sizeof( customization_t ) == 164, "invalid customization_t size, broken API" );
STATIC_ASSERT( sizeof( resource_t ) == 136, "invalid resource_t size, broken API" );
#else
STATIC_ASSERT( sizeof( customization_t ) == 192, "invalid customization_t size, broken API" );
STATIC_ASSERT( sizeof( resource_t ) == 144, "invalid resource_t size, broken API" );
#endif
STATIC_CHECK_SIZEOF( customization_t, 164, 192 );
STATIC_CHECK_SIZEOF( resource_t, 136, 144 );
#endif // CUSTOM_H