- Timestamp:
- Jul 22, 2007 10:18:54 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/assert-r0drv-darwin.cpp
r3706 r3760 31 31 #include <iprt/stdarg.h> 32 32 33 /******************************************************************************* 34 * Global Variables * 35 *******************************************************************************/ 36 /** The last assert message, 1st part. */ 37 RTDATADECL(char) g_szRTAssertMsg1[1024]; 38 /** The last assert message, 2nd part. */ 39 RTDATADECL(char) g_szRTAssertMsg2[2048]; 40 33 41 34 42 RTDECL(void) AssertMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction) … … 45 53 "Location : %s(%d) %s\r\n", 46 54 pszExpr, pszFile, uLine, pszFunction); 55 56 RTStrPrintf(g_szRTAssertMsg1, sizeof(g_szRTAssertMsg1), 57 "\n!!Assertion Failed!!\n" 58 "Expression: %s\n" 59 "Location : %s(%d) %s\n", 60 pszExpr, pszFile, uLine, pszFunction); 47 61 } 48 62 … … 64 78 va_end(va); 65 79 printf("%s", szMsg); 80 81 va_start(va, pszFormat); 82 RTStrPrintfV(g_szRTAssertMsg2, sizeof(g_szRTAssertMsg2), pszFormat, va); 83 va_end(va); 84 85 panic("%s%s", g_szRTAssertMsg1, g_szRTAssertMsg2); 66 86 } 67 87
Note:
See TracChangeset
for help on using the changeset viewer.