diff options
author | Gareth Hughes <gareth@valinux.com> | 1999-11-05 20:36:55 +0000 |
---|---|---|
committer | Gareth Hughes <gareth@valinux.com> | 1999-11-05 20:36:55 +0000 |
commit | 787250cc0130a6c72f97078670988e8900c77e95 (patch) | |
tree | 55c0f91cfb69cd982de91c346073910d7ca81c0b /src/glu/mesa | |
parent | f7190d4b1f63ce94526d526c4c6c326c6833bf2b (diff) |
Added filename, line number output for debugging messages.
Diffstat (limited to 'src/glu/mesa')
-rw-r--r-- | src/glu/mesa/tess.c | 10 | ||||
-rw-r--r-- | src/glu/mesa/tess.h | 3 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/glu/mesa/tess.c b/src/glu/mesa/tess.c index 7c77395689..6daa722054 100644 --- a/src/glu/mesa/tess.c +++ b/src/glu/mesa/tess.c @@ -1,4 +1,4 @@ -/* $Id: tess.c,v 1.19 1999/11/04 04:07:57 gareth Exp $ */ +/* $Id: tess.c,v 1.20 1999/11/05 20:36:55 gareth Exp $ */ /* * Mesa 3-D graphics library @@ -959,7 +959,6 @@ INLINE void tess_msg( int level, char *format, ... ) va_start( ap, format ); if ( level <= tess_dbg_level ) { - /*fprintf( DBG_STREAM, "%9.9s:%d:\t ", __FILE__, __LINE__ );*/ vfprintf( DBG_STREAM, format, ap ); fflush( DBG_STREAM ); } @@ -967,3 +966,10 @@ INLINE void tess_msg( int level, char *format, ... ) va_end( ap ); #endif } + +INLINE void tess_info( char *file, char *line ) +{ +#ifdef DEBUG + fprintf( DBG_STREAM, "%9.9s:%d:\t ", file, line ); +#endif +} diff --git a/src/glu/mesa/tess.h b/src/glu/mesa/tess.h index f28923e34f..504ebd0872 100644 --- a/src/glu/mesa/tess.h +++ b/src/glu/mesa/tess.h @@ -1,4 +1,4 @@ -/* $Id: tess.h,v 1.14 1999/11/04 04:07:57 gareth Exp $ */ +/* $Id: tess.h,v 1.15 1999/11/05 20:37:14 gareth Exp $ */ /* * Mesa 3-D graphics library @@ -116,6 +116,7 @@ extern int tess_dbg_level; #endif /* DEBUG */ extern INLINE void tess_msg( int level, char *format, ... ); +extern INLINE void tess_info( char *file, char *line ); #ifdef __cplusplus } |