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>
if (0)
{
- printf("%s %d..%d\n", __FUNCTION__, min_index, max_index);
+ printf("%s %d..%d\n", __func__, min_index, max_index);
for (i = 0; i < nr_prims; i++)
printf("prim %d: %s start %d count %d\n", i,
_mesa_lookup_enum_by_nr(prim[i].mode),
const GLuint nr = VB->Count;
#ifdef TRACE
- fprintf(stderr, "%s\n", __FUNCTION__ );
+ fprintf(stderr, "%s\n", __func__ );
#endif
VB->AttribPtr[_TNL_ATTRIB_COLOR0] = &store->LitColor[0];
const GLuint nr = VB->Count;
#ifdef TRACE
- fprintf(stderr, "%s\n", __FUNCTION__ );
+ fprintf(stderr, "%s\n", __func__ );
#endif
VB->AttribPtr[_TNL_ATTRIB_COLOR0] = &store->LitColor[0];
#endif
#ifdef TRACE
- fprintf(stderr, "%s\n", __FUNCTION__ );
+ fprintf(stderr, "%s\n", __func__ );
#endif
(void) input; /* doesn't refer to Eye or Obj */
const struct gl_light *light;
#ifdef TRACE
- fprintf(stderr, "%s %d\n", __FUNCTION__, nr );
+ fprintf(stderr, "%s %d\n", __func__, nr );
#endif
(void) input;
#if 0
-#define DEBUG_INSERT printf("%s\n", __FUNCTION__)
+#define DEBUG_INSERT printf("%s\n", __func__)
#else
#define DEBUG_INSERT
#endif
}
} else {
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
}
} else {
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
FLUSH();
} else {
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
FLUSH();
} else {
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
FLUSH();
} else {
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
/* Could write code to emit these as indexed vertices (for the
* g400, for instance).
*/
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
else if (HAVE_TRI_FANS && ctx->Light.ShadeModel == GL_SMOOTH) {
TAG(render_tri_fan_verts)( ctx, start, count, flags );
} else {
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
/* Vertices won't fit in a single buffer or elts not
* available - should never happen.
*/
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
FLUSH();
} else {
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
else {
/* Vertices won't fit in a single buffer, should never happen.
*/
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
currentsz = dmasz;
}
} else {
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
currentsz = dmasz;
}
} else {
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
} else {
/* TODO: Try to emit as indexed lines.
*/
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
FLUSH();
} else {
/* TODO: Try to emit as indexed lines */
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
}
} else {
/* TODO: try to emit as indexed triangles */
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
}
} else {
/* TODO: try to emit as indexed triangles */
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
} else if (HAVE_TRI_FANS && ctx->Light.ShadeModel == GL_SMOOTH) {
TAG(render_tri_fan_verts)( ctx, start, count, flags );
} else {
- fprintf(stderr, "%s - cannot draw primitive\n", __FUNCTION__);
+ fprintf(stderr, "%s - cannot draw primitive\n", __func__);
return;
}
}
{
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 );
}
}
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)
GLuint flags )
{
LOCAL_VARS;
- if (0) fprintf(stderr, "%s\n", __FUNCTION__);
+ if (0) fprintf(stderr, "%s\n", __func__);
if (start+1 >= count)
return;
{
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;
GLuint flags )
{
LOCAL_VARS;
- if (0) fprintf(stderr, "%s\n", __FUNCTION__);
+ if (0) fprintf(stderr, "%s\n", __func__);
count -= (count-start)%3;
GLuint flags )
{
LOCAL_VARS;
- if (0) fprintf(stderr, "%s\n", __FUNCTION__);
+ if (0) fprintf(stderr, "%s\n", __func__);
if (start + 2 >= count)
return;
GLuint flags )
{
LOCAL_VARS;
- if (0) fprintf(stderr, "%s\n", __FUNCTION__);
+ if (0) fprintf(stderr, "%s\n", __func__);
if (start+2 >= count)
return;
GLuint flags )
{
LOCAL_VARS;
- if (0) fprintf(stderr, "%s\n", __FUNCTION__);
+ if (0) fprintf(stderr, "%s\n", __func__);
if (start+2 >= count)
return;
GLuint flags )
{
LOCAL_VARS;
- if (0) fprintf(stderr, "%s\n", __FUNCTION__);
+ if (0) fprintf(stderr, "%s\n", __func__);
count -= (count-start) & 1;
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)
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;
GLuint j;
if (DO_DEBUG_VERTS) {
- fprintf(stderr, "%s\n", __FUNCTION__);
+ fprintf(stderr, "%s\n", __func__);
PRINT_VERTEX(v0);
PRINT_VERTEX(v1);
PRINT_VERTEX(v2);
GLuint j;
if (DO_DEBUG_VERTS) {
- fprintf(stderr, "%s\n", __FUNCTION__);
+ fprintf(stderr, "%s\n", __func__);
PRINT_VERTEX(v0);
PRINT_VERTEX(v1);
PRINT_VERTEX(v2);
GLuint j;
if (DO_DEBUG_VERTS) {
- fprintf(stderr, "%s\n", __FUNCTION__);
+ fprintf(stderr, "%s\n", __func__);
PRINT_VERTEX(v0);
PRINT_VERTEX(v1);
PRINT_VERTEX(v2);
GLuint i,j;
if (DO_DEBUG_VERTS) {
- fprintf(stderr, "%s\n", __FUNCTION__);
+ fprintf(stderr, "%s\n", __func__);
PRINT_VERTEX(VERT(elts[0]));
PRINT_VERTEX(VERT(elts[1]));
}
GLuint facing = 0;
LOCAL_VARS(3);
-/* fprintf(stderr, "%s\n", __FUNCTION__); */
+/* fprintf(stderr, "%s\n", __func__); */
v[0] = (VERTEX *)GET_VERTEX(e0);
v[1] = (VERTEX *)GET_VERTEX(e1);
}
}
-/* fprintf(stderr, "%s %s %d %d %d\n", __FUNCTION__, */
+/* fprintf(stderr, "%s %s %d %d %d\n", __func__, */
/* _mesa_lookup_enum_by_nr( mode ), */
/* ef[e0], ef[e1], ef[e2]); */