Browse Source

Define __FUNCTION__ as a preprocessor symbol in glheader.h if we're not

using GCC or VMS.
tags/mesa_20050715
Brian Paul 20 years ago
parent
commit
38332a6d94
2 changed files with 11 additions and 4 deletions
  1. 11
    0
      src/mesa/main/glheader.h
  2. 0
    4
      src/mesa/tnl/t_vp_build.c

+ 11
- 0
src/mesa/main/glheader.h View File

@@ -285,6 +285,17 @@ int INLINE ffs(int value)
}
#endif


/* The __FUNCTION__ gcc variable is generally only used for debugging.
* If we're not using gcc, define __FUNCTION__ as a cpp symbol here.
*/
#if defined(__VMS)
#define __FUNCTION__ "VMS$NL:"
#elif !(defined(__GNUC__) && __GNUC__ >= 2)
#define __FUNCTION__ "unknown"
#endif


#include "config.h"

#endif /* GLHEADER_H */

+ 0
- 4
src/mesa/tnl/t_vp_build.c View File

@@ -519,10 +519,6 @@ static void emit_op3fn(struct tnl_program *p,
debug_insn(inst, fn, line);
}

#ifdef __VMS
#define __FUNCTION__ "VMS$NL:"
#endif

#define emit_op3(p, op, dst, mask, src0, src1, src2) \
emit_op3fn(p, op, dst, mask, src0, src1, src2, __FUNCTION__, __LINE__)

Loading…
Cancel
Save