From bd5ef82698e5e5931ae46e763187a472ce76b661 Mon Sep 17 00:00:00 2001 From: Liming Gao Date: Fri, 11 Nov 2016 11:30:13 +0800 Subject: [PATCH] MdePkg Base.h: Add add comments on __ prefix in enum VERIFY_UINTXX_ENUM_SIZE Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Michael Kinney --- MdePkg/Include/Base.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index 5e24b5d487..8f5b919faa 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -63,6 +63,13 @@ VERIFY_SIZE_OF (UINT64, 8); VERIFY_SIZE_OF (CHAR8, 1); VERIFY_SIZE_OF (CHAR16, 2); +// +// The following three enum types are used to verify that the compiler +// configuration for enum types is compliant with Section 2.3.1 of the +// UEFI 2.3 Specification. These enum types and enum values are not +// intended to be used. A prefix of '__' is used avoid conflicts with +// other types. +// typedef enum { __VerifyUint8EnumValue = 0xff } __VERIFY_UINT8_ENUM_SIZE; -- 2.39.2