diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-26 18:57:41 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-26 18:57:41 +0400 |
commit | 62f9959a8e4269293ee80c3bfe3f55e8b12f7ccd (patch) | |
tree | c14c0c9430c2c6755b6bc07a818348c35868ae6f /source/blender/bmesh/intern/bmesh_structure.c | |
parent | ed21afa2eb84bd944667b0f89cdc325ccd9d58f5 (diff) |
replace bmesh_error with macro that gives the file/line/func the error happens on.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_structure.c')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_structure.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/bmesh/intern/bmesh_structure.c b/source/blender/bmesh/intern/bmesh_structure.c index 8b16c641c3a..a90208540b9 100644 --- a/source/blender/bmesh/intern/bmesh_structure.c +++ b/source/blender/bmesh/intern/bmesh_structure.c @@ -366,7 +366,7 @@ int bmesh_radial_validate(int radlen, BMLoop *l) do { if (!l_iter) { - bmesh_error(); + BMESH_ERROR; return FALSE; } @@ -376,7 +376,7 @@ int bmesh_radial_validate(int radlen, BMLoop *l) return FALSE; if (i > BM_LOOP_RADIAL_MAX) { - bmesh_error(); + BMESH_ERROR; return FALSE; } @@ -398,7 +398,7 @@ void bmesh_radial_remove_loop(BMLoop *l, BMEdge *e) { /* if e is non-NULL, l must be in the radial cycle of e */ if (e && e != l->e) { - bmesh_error(); + BMESH_ERROR; } if (l->radial_next != l) { @@ -414,7 +414,7 @@ void bmesh_radial_remove_loop(BMLoop *l, BMEdge *e) e->l = NULL; } else { - bmesh_error(); + BMESH_ERROR; } } } @@ -472,13 +472,13 @@ int bmesh_radial_length(BMLoop *l) do { if (!l_iter) { /* radial cycle is broken (not a circulat loop) */ - bmesh_error(); + BMESH_ERROR; return 0; } i++; if (i >= BM_LOOP_RADIAL_MAX) { - bmesh_error(); + BMESH_ERROR; return -1; } } while ((l_iter = l_iter->radial_next) != l); @@ -504,7 +504,7 @@ void bmesh_radial_append(BMEdge *e, BMLoop *l) if (l->e && l->e != e) { /* l is already in a radial cycle for a different edge */ - bmesh_error(); + BMESH_ERROR; } l->e = e; |