]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg/Include/Library: Undefine _ASSERT() if already defined
authorMichael D Kinney <michael.d.kinney@intel.com>
Tue, 11 Oct 2022 19:03:48 +0000 (12:03 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 11 Nov 2022 05:46:51 +0000 (05:46 +0000)
commitc1b073a9dccc11fbd9fdfd69f76de6e972ad1550
treef1d964acc976491eee7c4dfa7be1c6dad2b24384
parent933b4c333c8f9a78280def62bab55eee5a6b2456
MdePkg/Include/Library: Undefine _ASSERT() if already defined

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4134

When unit testing is enabled, make sure _ASSERT() is not already
defined by the host environment before defining _ASSERT().  This
avoids conflicts with VS20xx builds of GoogleTest based unit tests.

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
MdePkg/Include/Library/DebugLib.h