Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-02-26 18:57:41 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-26 18:57:41 +0400
commit62f9959a8e4269293ee80c3bfe3f55e8b12f7ccd (patch)
treec14c0c9430c2c6755b6bc07a818348c35868ae6f /source/blender/bmesh/intern/bmesh_mesh.c
parented21afa2eb84bd944667b0f89cdc325ccd9d58f5 (diff)
replace bmesh_error with macro that gives the file/line/func the error happens on.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_mesh.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_mesh.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/bmesh/intern/bmesh_mesh.c b/source/blender/bmesh/intern/bmesh_mesh.c
index 097c87ca1c6..7d8e55347f5 100644
--- a/source/blender/bmesh/intern/bmesh_mesh.c
+++ b/source/blender/bmesh/intern/bmesh_mesh.c
@@ -51,14 +51,16 @@
int bm_mesh_allocsize_default[4] = {512, 512, 2048, 512};
/* bmesh_error stub */
-void bmesh_error(void)
+void _bmesh_error(const char *at, const char *func)
{
- printf("BM modelling error!\n");
+ fprintf(stderr, "BM modelling error '%s', func '%s'!\n", at, func);
+#ifdef WITH_ASSERT_ABORT
/* This placeholder assert makes modelling errors easier to catch
* in the debugger, until bmesh_error is replaced with something
* better. */
- BLI_assert(0);
+ abort();
+#endif
}
static void bmesh_mempool_init(BMesh *bm, const int allocsize[4])