summaryrefslogtreecommitdiff
path: root/MdePkg/Include/Library/DebugLib.h
diff options
context:
space:
mode:
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-02 03:21:46 +0000
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-02 03:21:46 +0000
commit5ee9264acc861940b79497f17d7e49b5c8af3731 (patch)
tree432dd2d9f1f4ec3d8a62e850c33677909f2f1916 /MdePkg/Include/Library/DebugLib.h
parentd228526f931a51694919a65867310606e64611a5 (diff)
downloadedk2-platforms-5ee9264acc861940b79497f17d7e49b5c8af3731.tar.xz
wrap ASSERT_LOCKED macro with MDEPKG_NDEBUG.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9907 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include/Library/DebugLib.h')
-rw-r--r--MdePkg/Include/Library/DebugLib.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/MdePkg/Include/Library/DebugLib.h b/MdePkg/Include/Library/DebugLib.h
index 836d807dcf..bf38fd8bf5 100644
--- a/MdePkg/Include/Library/DebugLib.h
+++ b/MdePkg/Include/Library/DebugLib.h
@@ -4,11 +4,11 @@
The Debug library supports debug print and asserts based on a combination of macros and code.
The debug library can be turned on and off so that the debug code does not increase the size of an image.
- Note that a MDEPKG_NDEBUG macro is introduced to switch on/off debug and assert related macros.
- 1. If MDEPKG_NDEBUG is defined, then debug and assert related macros are NULL.
- 2. If MDEPKG_NDEBUG is not defined, then PcdDebugProperyMask is used to turn on/off these helper macros.
+ Note that a reserved macro named MDEPKG_NDEBUG is introduced for the intention
+ 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 - 2008, Intel Corporation<BR>
+Copyright (c) 2006 - 2010, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at