[Mesa-dev] [PATCH 4/7] mesa: Use unreachable instead of assert in check_valid_to_render
Ian Romanick
idr at freedesktop.org
Thu Nov 20 11:14:52 PST 2014
From: Ian Romanick <ian.d.romanick at intel.com>
This is generally the prefered style these days.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/mesa/main/api_validate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c
index 181a61d..304d576 100644
--- a/src/mesa/main/api_validate.c
+++ b/src/mesa/main/api_validate.c
@@ -113,7 +113,7 @@ check_valid_to_render(struct gl_context *ctx, const char *function)
break;
default:
- assert(!"Invalid API value in check_valid_to_render()");
+ unreachable("Invalid API value in check_valid_to_render()");
}
return GL_TRUE;
--
1.8.1.4
More information about the mesa-dev
mailing list