VirtualBox

Changeset 56179 in vbox


Ignore:
Timestamp:
Jun 1, 2015 1:22:59 PM (10 years ago)
Author:
vboxsync
Message:

3D: adjust CRASSERT() macro a bit and fix false assertion.

Location:
trunk/src/VBox/GuestHost/OpenGL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_error.h

    r52351 r56179  
    6262#  define CR_DDI_PROLOGUE() do { /*if (g_VBoxFbgFBreakDdi) {Assert(0);}*/ } while (0)
    6363# else
    64 #  define CRASSERT( PRED ) ((PRED)?(void)0:crWarning( "Assertion failed: %s, file %s, line %d", #PRED, __FILE__, __LINE__))
     64#  define CRASSERT( PRED ) ((PRED)?(void)0:crWarning( "Assertion failed: %s=%d, file %s, line %d", #PRED, PRED, __FILE__, __LINE__))
    6565#  define CR_DDI_PROLOGUE() do {} while (0)
    6666# endif
  • trunk/src/VBox/GuestHost/OpenGL/util/error.c

    r55624 r56179  
    160160        {
    161161            int rc;
    162             rc = RTR3InitDll(RTR3INIT_FLAGS_UNOBTRUSIVE); CRASSERT(rc);
     162            rc = RTR3InitDll(RTR3INIT_FLAGS_UNOBTRUSIVE); CRASSERT(rc==0);
    163163# ifdef IN_GUEST
    164164            rc = VbglR3Init();
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