Changeset 8596
- Timestamp:
- 05/05/08 16:12:53 (8 months ago)
- Files:
-
- trunk/include/iprt/assert.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/include/iprt/assert.h
r8595 r8596 1919 1919 #define AssertPtrNullReturnVoid(pv) AssertMsgReturnVoid(VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv))) 1920 1920 1921 /** @def AssertPtrNullBreak 1922 * Asserts that a pointer is valid or NULL. 1923 * 1924 * @param pv The pointer. 1925 */ 1926 #define AssertPtrNullBreak(pv) AssertMsgBreak(VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv))) 1927 1921 1928 /** @def AssertPtrNullBreakStmt 1922 1929 * Asserts that a pointer is valid or NULL. … … 1925 1932 * @param stmt Statement to execute before break in case of a failed assertion. 1926 1933 */ 1927 #define AssertPtrNullBreakStmt(pv, stmt) AssertMsgBreakStmt(VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv)), stmt) 1928 1929 /** @def AssertPtrNullBreakVoid 1930 * Asserts that a pointer is valid or NULL. 1931 * 1932 * @param pv The pointer. 1933 * @todo Rename to AssertPtrNullBreak. 1934 */ 1935 #define AssertPtrNullBreakVoid(pv) AssertMsgBreak(VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv))) 1934 #define AssertPtrNullBreakStmt(pv, stmt) AssertMsgBreakStmt(VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv)), stmt) 1936 1935 1937 1936 /** @def AssertGCPhys32 … … 1940 1939 * @param GCPhys The address (RTGCPHYS). 1941 1940 */ 1942 #define AssertGCPhys32(GCPhys) AssertMsg(VALID_PHYS32(GCPhys), ("%RGp\n", (RTGCPHYS)(GCPhys)))1941 #define AssertGCPhys32(GCPhys) AssertMsg(VALID_PHYS32(GCPhys), ("%RGp\n", (RTGCPHYS)(GCPhys))) 1943 1942 1944 1943

