X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2FLibrary%2FDebugLib.h;fp=MdePkg%2FInclude%2FLibrary%2FDebugLib.h;h=baab34bf0528c380d879107be89aaaedd1a2773e;hp=f1d55cf62b0e111bfbcace5a2aba8b48ffe90fed;hb=bd6aa93296de36c5afabd34e4fa4083bccb8488d;hpb=776ec4ea3cbf027d258904a1d0a5b9821d07f2ef diff --git a/MdePkg/Include/Library/DebugLib.h b/MdePkg/Include/Library/DebugLib.h index f1d55cf62b..baab34bf05 100644 --- a/MdePkg/Include/Library/DebugLib.h +++ b/MdePkg/Include/Library/DebugLib.h @@ -8,7 +8,7 @@ of size reduction when compiler optimization is disabled. If MDEPKG_NDEBUG is defined, then debug and assert related macros wrapped by it are the NULL implementations. -Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -289,7 +289,11 @@ DebugPrintLevelEnabled ( @param Expression Boolean expression that evaluated to FALSE **/ +#if defined(__clang__) && defined(__FILE_NAME__) +#define _ASSERT(Expression) DebugAssert (__FILE_NAME__, __LINE__, #Expression) +#else #define _ASSERT(Expression) DebugAssert (__FILE__, __LINE__, #Expression) +#endif /**