diff options
author | Marius Predut <marius.predut@intel.com> | 2015-04-03 16:11:57 +0300 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-04-14 12:23:41 -0700 |
commit | f0e693efb393f1135702c80a64f8733adc922db1 (patch) | |
tree | 8c266fb784c46ef00bb09c3617015e5dfaa4aed4 /src/mesa/tnl_dd/t_dd_dmatmp2.h | |
parent | 3ca17e75e4fe129511a4dcad47e139485beef880 (diff) | |
download | external_mesa3d-f0e693efb393f1135702c80a64f8733adc922db1.zip external_mesa3d-f0e693efb393f1135702c80a64f8733adc922db1.tar.gz external_mesa3d-f0e693efb393f1135702c80a64f8733adc922db1.tar.bz2 |
tnl: replace __FUNCTION__ with __func__
Consistently just use C99's __func__ everywhere.
The patch was verified with Microsoft Visual studio 2013
redistributable package(RTM version number: 18.0.21005.1)
Next MSVC versions intends to support __func__.
No functional changes.
Acked-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Signed-off-by: Marius Predut <marius.predut@intel.com>
Diffstat (limited to 'src/mesa/tnl_dd/t_dd_dmatmp2.h')
-rw-r--r-- | src/mesa/tnl_dd/t_dd_dmatmp2.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mesa/tnl_dd/t_dd_dmatmp2.h b/src/mesa/tnl_dd/t_dd_dmatmp2.h index 7c6f136..96c5b47 100644 --- a/src/mesa/tnl_dd/t_dd_dmatmp2.h +++ b/src/mesa/tnl_dd/t_dd_dmatmp2.h @@ -121,7 +121,7 @@ static void TAG(render_points_verts)( struct gl_context *ctx, { if (start < count) { LOCAL_VARS; - if (0) fprintf(stderr, "%s\n", __FUNCTION__); + if (0) fprintf(stderr, "%s\n", __func__); EMIT_PRIM( ctx, GL_POINTS, HW_POINTS, start, count ); } } @@ -132,7 +132,7 @@ static void TAG(render_lines_verts)( struct gl_context *ctx, GLuint flags ) { LOCAL_VARS; - if (0) fprintf(stderr, "%s\n", __FUNCTION__); + if (0) fprintf(stderr, "%s\n", __func__); count -= (count-start) & 1; if (start+1 >= count) @@ -156,7 +156,7 @@ static void TAG(render_line_strip_verts)( struct gl_context *ctx, GLuint flags ) { LOCAL_VARS; - if (0) fprintf(stderr, "%s\n", __FUNCTION__); + if (0) fprintf(stderr, "%s\n", __func__); if (start+1 >= count) return; @@ -204,7 +204,7 @@ static void TAG(render_line_loop_verts)( struct gl_context *ctx, { LOCAL_VARS; GLuint j, nr; - if (0) fprintf(stderr, "%s\n", __FUNCTION__); + if (0) fprintf(stderr, "%s\n", __func__); if (flags & PRIM_BEGIN) { j = start; @@ -292,7 +292,7 @@ static void TAG(render_triangles_verts)( struct gl_context *ctx, GLuint flags ) { LOCAL_VARS; - if (0) fprintf(stderr, "%s\n", __FUNCTION__); + if (0) fprintf(stderr, "%s\n", __func__); count -= (count-start)%3; @@ -313,7 +313,7 @@ static void TAG(render_tri_strip_verts)( struct gl_context *ctx, GLuint flags ) { LOCAL_VARS; - if (0) fprintf(stderr, "%s\n", __FUNCTION__); + if (0) fprintf(stderr, "%s\n", __func__); if (start + 2 >= count) return; @@ -358,7 +358,7 @@ static void TAG(render_tri_fan_verts)( struct gl_context *ctx, GLuint flags ) { LOCAL_VARS; - if (0) fprintf(stderr, "%s\n", __FUNCTION__); + if (0) fprintf(stderr, "%s\n", __func__); if (start+2 >= count) return; @@ -401,7 +401,7 @@ static void TAG(render_poly_verts)( struct gl_context *ctx, GLuint flags ) { LOCAL_VARS; - if (0) fprintf(stderr, "%s\n", __FUNCTION__); + if (0) fprintf(stderr, "%s\n", __func__); if (start+2 >= count) return; @@ -415,7 +415,7 @@ static void TAG(render_quad_strip_verts)( struct gl_context *ctx, GLuint flags ) { LOCAL_VARS; - if (0) fprintf(stderr, "%s\n", __FUNCTION__); + if (0) fprintf(stderr, "%s\n", __func__); count -= (count-start) & 1; @@ -466,7 +466,7 @@ static void TAG(render_quads_verts)( struct gl_context *ctx, GLuint flags ) { LOCAL_VARS; - if (0) fprintf(stderr, "%s\n", __FUNCTION__); + if (0) fprintf(stderr, "%s\n", __func__); count -= (count-start)%4; if (start+3 >= count) @@ -642,7 +642,7 @@ static void TAG(render_line_loop_elts)( struct gl_context *ctx, GLuint j, nr; ELT_TYPE *dest; - if (0) fprintf(stderr, "%s\n", __FUNCTION__); + if (0) fprintf(stderr, "%s\n", __func__); if (flags & PRIM_BEGIN) j = start; |