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/control/Phones.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/control/Phones.h') diff --git a/src/control/Phones.h b/src/control/Phones.h index 7fbf403f..01ed370e 100644 --- a/src/control/Phones.h +++ b/src/control/Phones.h @@ -32,7 +32,9 @@ public: ~CPhone() { } }; +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(CPhone) == 0x34, "CPhone: error"); +#endif class CPhoneInfo { public: -- 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/control/Phones.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/control/Phones.h') diff --git a/src/control/Phones.h b/src/control/Phones.h index 01ed370e..14d47ed1 100644 --- a/src/control/Phones.h +++ b/src/control/Phones.h @@ -32,9 +32,7 @@ public: ~CPhone() { } }; -#ifdef CHECK_STRUCT_SIZES -static_assert(sizeof(CPhone) == 0x34, "CPhone: error"); -#endif +VALIDATE_SIZE(CPhone, 0x34); class CPhoneInfo { public: -- cgit v1.2.3