- Timestamp:
- May 5, 2008 2:12:53 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.