[edk2-devel] [PATCH] MdePkg: Add STATIC_ASSERT macro

2019-08-12 Thread vit9696 via Groups.Io
Implements https://bugzilla.tianocore.org/show_bug.cgi?id=2048. Best regards, Vitaly Cheptsov -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#45451): https://edk2.groups.io/g/devel/message/45451 Mute This Topic: https://groups.io/mt/32841

[edk2-devel] [PATCH v2 0/1] MdePkg: Add STATIC_ASSERT macro

2019-08-13 Thread vit9696 via Groups.Io
Implements https://bugzilla.tianocore.org/show_bug.cgi?id=2048. Things to note: - _Static_assert is a standard C11 keyword and thus is available on every modern compiler (including Apple Clang, Clang, and GCC). - static_assert is a hack to support MSVC, which implements static assertions with this

[edk2-devel] [PATCH v2 1/1] MdePkg: Add STATIC_ASSERT macro

2019-08-13 Thread vit9696 via Groups.Io
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2048 Provide a macro for compile time assertions. Equivalent to C11 static_assert macro from assert.h. Signed-off-by: Vitaly Cheptsov --- MdePkg/Include/Base.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MdePkg/Include/Base