mesa: Replace abort by asserts.

This commit is contained in:
José Fonseca 2008-06-24 10:56:36 +09:00
parent c47248bdf8
commit c921a29b3a
4 changed files with 10 additions and 8 deletions

View file

@ -144,19 +144,19 @@ typedef unsigned int _glthread_Cond;
// #warning Condition variables not implemented.
#define _glthread_INIT_COND(cond) \
abort();
ASSERT(0);
#define _glthread_DESTROY_COND(name) \
abort();
ASSERT(0);
#define _glthread_COND_WAIT(cond, mutex) \
abort();
ASSERT(0);
#define _glthread_COND_SIGNAL(cond) \
abort();
ASSERT(0);
#define _glthread_COND_BROADCAST(cond) \
abort();
ASSERT(0);
#endif

View file

@ -206,7 +206,8 @@ static int test_transform_function( transform_func func, int psize,
case VAR:
break;
default:
abort();
ASSERT(0);
return 0;
}
}
}

View file

@ -67,7 +67,7 @@ gl_wrap_to_sp(GLenum wrap)
case GL_MIRROR_CLAMP_TO_BORDER_EXT:
return PIPE_TEX_WRAP_MIRROR_CLAMP_TO_BORDER;
default:
abort();
assert(0);
return 0;
}
}

View file

@ -772,7 +772,8 @@ tgsi_translate_mesa_program(
TGSI_WRITEMASK_XYZW );
break;
default:
abort();
assert(0);
return 0;
}
ti += tgsi_build_full_declaration(&fulldecl,
&tokens[ti],