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 _WIN32
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
00050 #else
00051
00052 #if defined(UNIX)
00053 #define GLOUTPUT( x )
00054 #else
00055 #define GLOUTPUT( x )
00056 #endif
00057
00058 #define GLASSERT( x )
00059 #define GLLOG( x ) printf x
00060
00061 #endif
00062
00063
00064
00065 #endif