MdePkg: Change complex DEBUG_CODE() to DEBUG_CODE_BEGIN/END()

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

Update use of DEBUG_CODE(Expression) if Expression is a complex code
block with if/while/for/case statements that use {}.

Cc: Andrew Fish <afish@apple.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Michael Kubacki <michael.kubacki@microsoft.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
Michael D Kinney 2021-12-05 14:33:53 -08:00 committed by mergify[bot]
parent db52c7f755
commit 098307e082
1 changed files with 2 additions and 2 deletions

View File

@ -334,7 +334,7 @@ PeCoffSearchImageBase (
Pe32Data = 0;
DEBUG_CODE (
DEBUG_CODE_BEGIN ();
EFI_IMAGE_DOS_HEADER *DosHdr;
EFI_IMAGE_OPTIONAL_HEADER_PTR_UNION Hdr;
@ -376,7 +376,7 @@ PeCoffSearchImageBase (
//
Pe32Data -= PE_COFF_IMAGE_ALIGN_SIZE;
}
);
DEBUG_CODE_END ();
return Pe32Data;
}