Changeset 8594
- Timestamp:
- 05/05/08 16:11:24 (8 months ago)
- Files:
-
- trunk/include/iprt/assert.h (modified) (8 diffs)
- trunk/src/VBox/Devices/Storage/VBoxHDD-new.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/include/iprt/assert.h
r8593 r8594 1836 1836 * @remark rc is references multiple times. 1837 1837 */ 1838 #define AssertFatalRC(rc) AssertFatalMsgRC(rc, ("%Vra\n", (rc)))1838 #define AssertFatalRC(rc) AssertFatalMsgRC(rc, ("%Vra\n", (rc))) 1839 1839 1840 1840 /** @def AssertReleaseMsgRC … … 1847 1847 * @remark rc is references multiple times. 1848 1848 */ 1849 #define AssertFatalMsgRC(rc, msg) AssertFatalMsg(RT_SUCCESS_NP(rc), msg)1849 #define AssertFatalMsgRC(rc, msg) AssertFatalMsg(RT_SUCCESS_NP(rc), msg) 1850 1850 1851 1851 /** @def AssertFatalRCSuccess … … 1857 1857 * @remark rc is references multiple times. 1858 1858 */ 1859 #define AssertFatalRCSuccess(rc) AssertFatalMsg((rc) == VINF_SUCCESS, ("%Vra\n", (rc)))1859 #define AssertFatalRCSuccess(rc) AssertFatalMsg((rc) == VINF_SUCCESS, ("%Vra\n", (rc))) 1860 1860 1861 1861 … … 1865 1865 * @param pv The pointer. 1866 1866 */ 1867 #define AssertPtr(pv) AssertMsg(VALID_PTR(pv), ("%p\n", (pv)))1867 #define AssertPtr(pv) AssertMsg(VALID_PTR(pv), ("%p\n", (pv))) 1868 1868 1869 1869 /** @def AssertPtrReturn … … 1873 1873 * @param rcRet What is to be presented to return. 1874 1874 */ 1875 #define AssertPtrReturn(pv, rcRet) AssertMsgReturn(VALID_PTR(pv), ("%p\n", (pv)), rcRet)1875 #define AssertPtrReturn(pv, rcRet) AssertMsgReturn(VALID_PTR(pv), ("%p\n", (pv)), rcRet) 1876 1876 1877 1877 /** @def AssertPtrReturnVoid … … 1880 1880 * @param pv The pointer. 1881 1881 */ 1882 #define AssertPtrReturnVoid(pv) AssertMsgReturnVoid(VALID_PTR(pv), ("%p\n", (pv)))1882 #define AssertPtrReturnVoid(pv) AssertMsgReturnVoid(VALID_PTR(pv), ("%p\n", (pv))) 1883 1883 1884 1884 /** @def AssertPtrBreakStmt … … 1890 1890 #define AssertPtrBreakStmt(pv, stmt) AssertMsgBreakStmt(VALID_PTR(pv), ("%p\n", (pv)), stmt) 1891 1891 1892 /** @def AssertPtrBreak Void1892 /** @def AssertPtrBreak 1893 1893 * Asserts that a pointer is valid. 1894 1894 * 1895 1895 * @param pv The pointer. 1896 * @todo Rename to AssertPtrBreak. 1897 */ 1898 #define AssertPtrBreakVoid(pv) AssertMsgBreak(VALID_PTR(pv), ("%p\n", (pv))) 1896 */ 1897 #define AssertPtrBreak(pv) AssertMsgBreak(VALID_PTR(pv), ("%p\n", (pv))) 1899 1898 1900 1899 /** @def AssertPtrNull … … 1918 1917 * @param pv The pointer. 1919 1918 */ 1920 #define AssertPtrNullReturnVoid(pv) AssertMsgReturnVoid(VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv)))1919 #define AssertPtrNullReturnVoid(pv) AssertMsgReturnVoid(VALID_PTR(pv) || (pv) == NULL, ("%p\n", (pv))) 1921 1920 1922 1921 /** @def AssertPtrNullBreakStmt trunk/src/VBox/Devices/Storage/VBoxHDD-new.cpp
r8569 r8594 821 821 { 822 822 /* sanity check */ 823 AssertPtrBreak Void(pDisk);823 AssertPtrBreak(pDisk); 824 824 AssertMsg(pDisk->u32Signature == VBOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 825 825 VDCloseAll(pDisk); … … 3255 3255 { 3256 3256 /* sanity check */ 3257 AssertPtrBreak Void(pDisk);3257 AssertPtrBreak(pDisk); 3258 3258 AssertMsg(pDisk->u32Signature == VBOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 3259 3259

