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/Dummy.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/entities/Dummy.h') diff --git a/src/entities/Dummy.h b/src/entities/Dummy.h index fcfd23fb..de0e448b 100644 --- a/src/entities/Dummy.h +++ b/src/entities/Dummy.h @@ -15,4 +15,7 @@ public: static void *operator new(size_t); static void operator delete(void*, size_t); }; + +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(CDummy) == 0x68, "CDummy: 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/Dummy.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/entities/Dummy.h') diff --git a/src/entities/Dummy.h b/src/entities/Dummy.h index de0e448b..3717a01c 100644 --- a/src/entities/Dummy.h +++ b/src/entities/Dummy.h @@ -16,6 +16,5 @@ public: static void operator delete(void*, size_t); }; -#ifdef CHECK_STRUCT_SIZES -static_assert(sizeof(CDummy) == 0x68, "CDummy: error"); -#endif +VALIDATE_SIZE(CDummy, 0x68); + -- cgit v1.2.3