45 #include FT_INTERNAL_DEBUG_H 48 #ifdef FT_DEBUG_LEVEL_ERROR 60 FT_Message(
const char* fmt,
63 static char buf[8192];
70 vsprintf( buf, fmt, ap );
71 OutputDebugStringA( buf );
79 FT_Panic(
const char* fmt,
82 static char buf[8192];
87 vsprintf( buf, fmt, ap );
88 OutputDebugStringA( buf );
110 #ifdef FT_DEBUG_LEVEL_TRACE 114 int ft_trace_levels[trace_count];
117 #define FT_TRACE_DEF( x ) #x , 119 static const char* ft_trace_toggles[trace_count + 1] =
121 #include FT_INTERNAL_TRACE_H 149 const char* ft2_debug = getenv(
"FT2_DEBUG" );
154 const char*
p = ft2_debug;
161 if ( *p ==
' ' || *p ==
'\t' || *p ==
',' || *p ==
';' || *p ==
'=' )
166 while ( *p && *p !=
':' )
169 if ( *p ==
':' && p > q )
172 int level = -1, found = -1;
175 for ( n = 0; n < trace_count; n++ )
177 const char* toggle = ft_trace_toggles[
n];
180 for ( i = 0; i <
len; i++ )
182 if ( toggle[i] != q[i] )
186 if ( i == len && toggle[i] == 0 )
202 if ( found >= 0 && level >= 0 )
204 if ( found == trace_any )
207 for ( n = 0; n < trace_count; n++ )
208 ft_trace_levels[n] = level;
211 ft_trace_levels[found] =
level;
GLdouble GLdouble GLdouble GLdouble q
GLenum GLuint GLenum GLsizei const GLchar * buf