]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Change _CR() to BASE_CR() to follow naming convention
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 6 Dec 2008 01:19:56 +0000 (01:19 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 6 Dec 2008 01:19:56 +0000 (01:19 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6886 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Base.h
MdePkg/Include/Library/DebugLib.h

index 4613ea011d0e38a1904a34e79aba0d3b2f2a7a3c..a90a67b98fb40db8aca32634a8289b2fbb249de7 100644 (file)
@@ -274,7 +274,7 @@ typedef CHAR8 *VA_LIST;
   @return  A pointer to the structure from one of it's elements.\r
   \r
 **/\r
-#define _CR(Record, TYPE, Field)  ((TYPE *) ((CHAR8 *) (Record) - (CHAR8 *) &(((TYPE *) 0)->Field)))\r
+#define BASE_CR(Record, TYPE, Field)  ((TYPE *) ((CHAR8 *) (Record) - (CHAR8 *) &(((TYPE *) 0)->Field)))\r
 \r
 /**\r
   Rounds a value up to the next boundary using a specified alignment.  \r
index 0c07aab5fb58f3ca87a9daf8269779cbc8ea59fd..764bccc87ca5ac9161debf65001aad08a020fa25 100644 (file)
@@ -438,9 +438,9 @@ DebugClearMemoryEnabled (
   @param  TestSignature  The 32-bit signature value to match.\r
 \r
 **/\r
-#define CR(Record, TYPE, Field, TestSignature)                                          \\r
-  (DebugAssertEnabled () && (_CR (Record, TYPE, Field)->Signature != TestSignature)) ?  \\r
-  (TYPE *) (_ASSERT (CR has Bad Signature), Record) :                                   \\r
-  _CR (Record, TYPE, Field)\r
+#define CR(Record, TYPE, Field, TestSignature)                                                        \\r
+  (DebugAssertEnabled () && (BASE_CR (Record, TYPE, Field)->Signature != TestSignature)) ?  \\r
+  (TYPE *) (_ASSERT (CR has Bad Signature), Record) :                                                 \\r
+  BASE_CR (Record, TYPE, Field)\r
     \r
 #endif\r