Added filename, line number output for debugging messages.
authorGareth Hughes <gareth@valinux.com>
Fri, 5 Nov 1999 20:36:55 +0000 (20:36 +0000)
committerGareth Hughes <gareth@valinux.com>
Fri, 5 Nov 1999 20:36:55 +0000 (20:36 +0000)
src/glu/mesa/tess.c
src/glu/mesa/tess.h

index 7c77395..6daa722 100644 (file)
@@ -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
+}
index f28923e..504ebd0 100644 (file)
@@ -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
 }