00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef GRINLIZ_DEBUG_INCLUDED
00028 #define GRINLIZ_DEBUG_INCLUDED
00029
00030 #if defined( _DEBUG ) && !defined( DEBUG )
00031 #define DEBUG
00032 #endif
00033
00034 #if defined(DEBUG)
00035 #ifdef _MSC_VER
00036 void dprintf( const char* format, ... );
00037 void WinDebugBreak();
00038
00039 #define GLASSERT( x ) if ( !(x)) WinDebugBreak()
00040 #define GLOUTPUT( x ) dprintf x
00041 #define GLLOG( x ) dprintf x
00042 #else
00043 #include <assert.h>
00044 #include <stdio.h>
00045 #define GLASSERT assert
00046 #define GLOUTPUT( x ) printf x
00047 #define GLLOG( x ) printf x
00048 #endif
00049 #else
00050
00051 #if defined(UNIX)
00052 #define GLOUTPUT( x )
00053 #else
00054 #define GLOUTPUT( x )
00055 #endif
00056
00057 #define GLASSERT( x )
00058 #define GLLOG( x ) printf x
00059
00060 #endif
00061
00062 #endif