summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-24 10:56:36 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-24 11:00:01 +0900
commitc921a29b3a696f6fa99b648d6cd975dbcf106429 (patch)
tree30ff344e410f938389add32a6e314f49161aadeb /src
parentc47248bdf8d55f985b199fc6e15b0177305cb6fd (diff)
mesa: Replace abort by asserts.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/glapi/glthread.h10
-rw-r--r--src/mesa/math/m_debug_xform.c3
-rw-r--r--src/mesa/state_tracker/st_atom_sampler.c2
-rw-r--r--src/mesa/state_tracker/st_mesa_to_tgsi.c3
4 files changed, 10 insertions, 8 deletions
diff --git a/src/mesa/glapi/glthread.h b/src/mesa/glapi/glthread.h
index b8e9d5f59b..ad2a63584b 100644
--- a/src/mesa/glapi/glthread.h
+++ b/src/mesa/glapi/glthread.h
@@ -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
diff --git a/src/mesa/math/m_debug_xform.c b/src/mesa/math/m_debug_xform.c
index 2af837cf64..0b07b4fd68 100644
--- a/src/mesa/math/m_debug_xform.c
+++ b/src/mesa/math/m_debug_xform.c
@@ -206,7 +206,8 @@ static int test_transform_function( transform_func func, int psize,
case VAR:
break;
default:
- abort();
+ ASSERT(0);
+ return 0;
}
}
}
diff --git a/src/mesa/state_tracker/st_atom_sampler.c b/src/mesa/state_tracker/st_atom_sampler.c
index 9abd0b3531..1e182eef1c 100644
--- a/src/mesa/state_tracker/st_atom_sampler.c
+++ b/src/mesa/state_tracker/st_atom_sampler.c
@@ -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;
}
}
diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c
index a8b6faad1c..150545dfad 100644
--- a/src/mesa/state_tracker/st_mesa_to_tgsi.c
+++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c
@@ -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],