From b65bc4f87b356cf6228151cd2f341432e80dc6b8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 25 Nov 2003 15:58:22 +0000 Subject: Remove unnecessary usage of __FUNCTION__. #define MESA_FUNCTION to __FUNCTION__ if MESA_DEBUG is defined. --- src/mesa/main/mtypes.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/main/mtypes.h') diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 012667a2ab..d451cc8985 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2263,9 +2263,11 @@ extern const char *_mesa_prim_name[GL_POLYGON+4]; #ifdef MESA_DEBUG extern int MESA_VERBOSE; extern int MESA_DEBUG_FLAGS; +# define MESA_FUNCTION __FUNCTION__ #else # define MESA_VERBOSE 0 # define MESA_DEBUG_FLAGS 0 +# define MESA_FUNCTION "a function" # ifndef NDEBUG # define NDEBUG # endif -- cgit v1.2.3