Added debugging pragma message.

This commit is contained in:
Gareth Hughes 1999-09-15 02:12:16 +00:00
parent d7c9c1e5c0
commit a852e8fc0f
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $Id: tess.h,v 1.5 1999/09/14 22:46:02 gareth Exp $ */
/* $Id: tess.h,v 1.6 1999/09/15 02:12:16 gareth Exp $ */
/*
* Mesa 3-D graphics library
@ -26,6 +26,9 @@
/*
* $Log: tess.h,v $
* Revision 1.6 1999/09/15 02:12:16 gareth
* Added debugging pragma message.
*
* Revision 1.5 1999/09/14 22:46:02 gareth
* Added debugging output.
*
@ -95,12 +98,13 @@ extern void tess_error_callback( GLUtesselator *, GLenum, void * );
extern int tess_debug_level;
int vdebugstr( char *format_str, ... );
#pragma message( "tess: using DEBUGP for debugging output" )
#define DEBUGP(level, body) \
do { \
if ( tess_debug_level >= level ) { \
vdebugstr( "%11.11s:%-5d ", __FILE__, __LINE__, level ); \
vdebugstr body; \
fflush ( stderr ); \
fflush( stderr ); \
} \
} while ( 0 )
#define DEBUGIF(level) do { if ( tess_debug_level >= level ) {