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/entities/Physical.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/entities/Physical.h') diff --git a/src/entities/Physical.h b/src/entities/Physical.h index b47d556e..c9b7402b 100644 --- a/src/entities/Physical.h +++ b/src/entities/Physical.h @@ -160,4 +160,7 @@ public: bool CheckCollision(void); bool CheckCollision_SimpleCar(void); }; + +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(CPhysical) == 0x128, "CPhysical: error"); +#endif -- 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/entities/Physical.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/entities/Physical.h') diff --git a/src/entities/Physical.h b/src/entities/Physical.h index c9b7402b..c84686ed 100644 --- a/src/entities/Physical.h +++ b/src/entities/Physical.h @@ -161,6 +161,4 @@ public: bool CheckCollision_SimpleCar(void); }; -#ifdef CHECK_STRUCT_SIZES -static_assert(sizeof(CPhysical) == 0x128, "CPhysical: error"); -#endif +VALIDATE_SIZE(CPhysical, 0x128); -- cgit v1.2.3