From 1081f624a4a9a37e9b08555b1c31cdbce873a8d3 Mon Sep 17 00:00:00 2001 From: klu2 Date: Tue, 28 Jul 2009 02:38:30 +0000 Subject: Add PcdVerifyNoteInList for judge whether do verification of node in list in debug mode. The default value is FALSE. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9016 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Library/BaseLib.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'MdePkg/Include/Library') diff --git a/MdePkg/Include/Library/BaseLib.h b/MdePkg/Include/Library/BaseLib.h index 25d61f1448..202d2c3f55 100644 --- a/MdePkg/Include/Library/BaseLib.h +++ b/MdePkg/Include/Library/BaseLib.h @@ -1357,7 +1357,7 @@ GetFirstNode ( InitializeListHead(), then ASSERT(). If PcdMaximumLinkedListLenth is not zero, and List contains more than PcdMaximumLinkedListLenth nodes, then ASSERT(). - If Node is not a node in List, then ASSERT(). + If PcdVerifyNodeInList is TRUE and Node is not a node in List, then ASSERT(). @param List A pointer to the head node of a doubly linked list. @param Node A pointer to a node in the doubly linked list. @@ -1416,7 +1416,8 @@ IsListEmpty ( If PcdMaximumLinkedListLenth is not zero, and the number of nodes in List, including the List node, is greater than or equal to PcdMaximumLinkedListLength, then ASSERT(). - If Node is not a node in List and Node is not equal to List, then ASSERT(). + If PcdVerifyNodeInList is TRUE and Node is not a node in List the and Node is not equal + to List, then ASSERT(). @param List A pointer to the head node of a doubly linked list. @param Node A pointer to a node in the doubly linked list. @@ -1447,7 +1448,7 @@ IsNull ( If PcdMaximumLinkedListLenth is not zero, and the number of nodes in List, including the List node, is greater than or equal to PcdMaximumLinkedListLength, then ASSERT(). - If Node is not a node in List, then ASSERT(). + If PcdVerifyNodeInList is TRUE and Node is not a node in List, then ASSERT(). @param List A pointer to the head node of a doubly linked list. @param Node A pointer to a node in the doubly linked list. @@ -1477,7 +1478,8 @@ IsNodeAtEnd ( If FirstEntry is NULL, then ASSERT(). If SecondEntry is NULL, then ASSERT(). - If SecondEntry and FirstEntry are not in the same linked list, then ASSERT(). + If PcdVerifyNodeInList is TRUE and SecondEntry and FirstEntry are not in the + same linked list, then ASSERT(). If PcdMaximumLinkedListLength is not zero, and the number of nodes in the linked list containing the FirstEntry and SecondEntry nodes, including the FirstEntry and SecondEntry nodes, is greater than or equal to -- cgit v1.2.3