summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/Base.h
diff options
context:
space:
mode:
authorVitaly Cheptsov via Groups.Io <vit9696=protonmail.com@groups.io>2019-08-17 07:58:12 +0800
committerLiming Gao <liming.gao@intel.com>2019-09-17 09:39:01 +0800
commitd8c4b87ec460233d2c6f3e1343b6638f8b4a1ddf (patch)
tree4d79e72aaf0f50ba3d2569a8360337537cfbbfc9 /MdePkg/Include/Base.h
parentb03fb410b2e9d6f29de8aeff07669c8902bc2d40 (diff)
downloadedk2-d8c4b87ec460233d2c6f3e1343b6638f8b4a1ddf.tar.gz
edk2-d8c4b87ec460233d2c6f3e1343b6638f8b4a1ddf.tar.bz2
edk2-d8c4b87ec460233d2c6f3e1343b6638f8b4a1ddf.zip
MdePkg: Drop VERIFY_SIZE_OF in favour of STATIC_ASSERT
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2048 New STATIC_ASSERT macro supersedes VERIFY_SIZE_OF as being more functional. Signed-off-by: Vitaly Cheptsov <vit9696@protonmail.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdePkg/Include/Base.h')
-rw-r--r--MdePkg/Include/Base.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h
index d871422cd6..ed85b98318 100644
--- a/MdePkg/Include/Base.h
+++ b/MdePkg/Include/Base.h
@@ -28,19 +28,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
#pragma warning ( disable : 4200 )
#endif
-/**
- Verifies the storage size of a given data type.
-
- This macro generates a divide by zero error or a zero size array declaration in
- the preprocessor if the size is incorrect. These are declared as "extern" so
- the space for these arrays will not be in the modules.
-
- @param TYPE The date type to determine the size of.
- @param Size The expected size for the TYPE.
-
-**/
-#define VERIFY_SIZE_OF(TYPE, Size) extern UINT8 _VerifySizeof##TYPE[(sizeof(TYPE) == (Size)) / (sizeof(TYPE) == (Size))]
-
//
// The Microsoft* C compiler can removed references to unreferenced data items
// if the /OPT:REF linker option is used. We defined a macro as this is a