Changeset 40267 in vbox for trunk/src/VBox/GuestHost/OpenGL/include
- Timestamp:
- Feb 28, 2012 7:09:18 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/cr_error.h
r32498 r40267 35 35 /* Throw more info while opengl is not stable */ 36 36 #if defined(DEBUG) || 1 37 #define CRASSERT( PRED ) ((PRED)?(void)0:crError( "Assertion failed: %s, file %s, line %d", #PRED, __FILE__, __LINE__)) 38 #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__)) 37 # ifdef DEBUG_misha 38 # include <iprt/assert.h> 39 # define CRASSERT Assert 40 //extern int g_VBoxFbgFBreakDdi; 41 # define CR_DDI_PROLOGUE() do { /*if (g_VBoxFbgFBreakDdi) {Assert(0);}*/ } while (0) 42 # else 43 # define CRASSERT( PRED ) ((PRED)?(void)0:crError( "Assertion failed: %s, file %s, line %d", #PRED, __FILE__, __LINE__)) 44 # define CR_DDI_PROLOGUE() do {} while (0) 45 # endif 46 # 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__)) 39 47 #else 40 #define CRASSERT( PRED ) ((void)0) 41 #define THREADASSERT( PRED ) ((void)0) 48 # define CRASSERT( PRED ) ((void)0) 49 # define THREADASSERT( PRED ) ((void)0) 50 # define CR_DDI_PROLOGUE() do {} while (0) 42 51 #endif 43 52
Note:
See TracChangeset
for help on using the changeset viewer.