VirtualBox

Ignore:
Timestamp:
Dec 20, 2009 11:24:59 PM (15 years ago)
Author:
vboxsync
Message:

IPRT,SUPDrv,++: AssertMsg[12] -> AssertMsg1Weak, AssertMsg1, AssertMsg2Weak, AssertMsg2, AssertMsg2WeakV and AssertMsg2V. Doing more of the assertion machinery in common/misc/assert.cpp to avoid code duplication (ring-0). Major SUPDrv version bump.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/kStuff/iprt/kHlpAssert-iprt.cpp

    r16404 r25528  
    3232KHLP_DECL(void) kHlpAssertMsg1(const char *pszExpr, const char *pszFile, unsigned iLine, const char *pszFunction)
    3333{
    34     /*RT*/AssertMsg1(pszExpr, iLine, pszFile, pszFunction);
     34    RTAssertMsg1Weak(pszExpr, iLine, pszFile, pszFunction);
    3535}
    3636
     
    4040    va_list va;
    4141    va_start(va, pszFormat);
    42 #if 0
    43     RTAssertMsg2V(pszFormat, va);
    44 #else
    45     char szBuf[512];
    46     RTStrPrintfV(szBuf, sizeof(szBuf), pszFormat, va);
    47     AssertMsg2("%s", szBuf);
    48 #endif
     42    RTAssertMsg2V/*Weak?*/(pszFormat, va);
    4943    va_end(va);
    5044}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette