VirtualBox

Changeset 15709 in vbox for trunk


Ignore:
Timestamp:
Dec 19, 2008 7:44:35 PM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: don't output debug messages in release build

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

Legend:

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

    r15532 r15709  
    3333DECLEXPORT(void) crError( char *format, ... ) NORETURN_PRINTF;
    3434
    35 #ifndef NDEBUG
     35/* Throw more info while opengl is not stable */
     36#if defined(DEBUG) || 1
    3637#define CRASSERT( PRED ) ((PRED)?(void)0:crError( "Assertion failed: %s, file %s, line %d", #PRED, __FILE__, __LINE__))
    3738#define THREADASSERT( PRED ) ((PRED)?(void)0:crError( "Are you trying to run a threaded app ?\nBuild with 'make threadsafe'\nAssertion failed: %s, file %s, line %d", #PRED, __FILE__, __LINE__))
  • trunk/src/VBox/GuestHost/OpenGL/util/bufpool.c

    r15532 r15709  
    112112    Buffer *b = crCalloc(sizeof(Buffer));
    113113    if (b) {
    114 #ifndef NDEBUG
     114#ifdef DEBUG
    115115        /* check that the buffer to push isn't already in the pool! */
    116116        {
  • trunk/src/VBox/GuestHost/OpenGL/util/error.c

    r15532 r15709  
    298298            output = stderr;
    299299        }
    300 #if NDEBUG
     300#ifndef DEBUG
    301301        /* Release mode: only emit crDebug messages if CR_DEBUG
    302302         * or CR_DEBUG_FILE is set.
  • trunk/src/VBox/GuestHost/OpenGL/util/net.c

    r15532 r15709  
    761761    }
    762762
    763 #ifndef NDEBUG
     763#ifdef DEBUG
    764764    if ( conn->send_credits > CR_INITIAL_RECV_CREDITS )
    765765    {
     
    794794    }
    795795
    796 #ifndef NDEBUG
     796#ifdef DEBUG
    797797    if ( conn->send_credits > CR_INITIAL_RECV_CREDITS )
    798798    {
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