From af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8 Mon Sep 17 00:00:00 2001 From: bigbossbro08 Date: Sun, 10 May 2020 19:54:37 +0600 Subject: defined out asserts. --- src/text/Text.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/text') diff --git a/src/text/Text.h b/src/text/Text.h index 00d1c5e6..a454a095 100644 --- a/src/text/Text.h +++ b/src/text/Text.h @@ -12,8 +12,11 @@ struct CKeyEntry wchar *value; char key[8]; }; + // If this fails, CKeyArray::Load will have to be fixed +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(CKeyEntry) == 12, "CKeyEntry: error"); +#endif class CKeyArray { -- cgit v1.2.3 From c798e1bacdaabaf140ff3904948fd7cec46c09bb Mon Sep 17 00:00:00 2001 From: bigbossbro08 Date: Sun, 10 May 2020 21:49:33 +0600 Subject: Fixed typos and made all assert functions optional --- src/text/Text.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/text') diff --git a/src/text/Text.h b/src/text/Text.h index a454a095..4255e2a5 100644 --- a/src/text/Text.h +++ b/src/text/Text.h @@ -14,9 +14,7 @@ struct CKeyEntry }; // If this fails, CKeyArray::Load will have to be fixed -#ifdef CHECK_STRUCT_SIZES -static_assert(sizeof(CKeyEntry) == 12, "CKeyEntry: error"); -#endif +VALIDATE_SIZE(CKeyEntry, 12); class CKeyArray { -- cgit v1.2.3