summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
120db52)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6886
6f19259b-4bc3-4df7-8a09-
765794883524
@return A pointer to the structure from one of it's elements.\r
\r
**/\r
@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
\r
/**\r
Rounds a value up to the next boundary using a specified alignment. \r
@param TestSignature The 32-bit signature value to match.\r
\r
**/\r
@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