• R/O
  • SSH
  • HTTPS

cstl: Commit


Commit MetaInfo

Revision398 (tree)
Time2010-07-26 20:59:40
Authorkatono

Log Message

不要なASSERTを削除。

Change Summary

Incremental Difference

--- branches/try-vfunc/cstl/common.h (revision 397)
+++ branches/try-vfunc/cstl/common.h (revision 398)
@@ -110,15 +110,15 @@
110110 #define cstl_iter_val(p) (CSTL_ASSERT(CSTL_CHK_ITER_IS_MAP(p)), (p).vptr->val((p).internal.data))
111111 #define cstl_iter_next(p) ((p).vptr->next((p).internal.data))
112112 #define cstl_iter_prev(p) (CSTL_ASSERT(CSTL_CHK_ITER_IS_BIDIR(p)), (p).vptr->prev((p).internal.data))
113-#define cstl_iter_inc(pp) (CSTL_ASSERT(pp), (pp)->vptr->inc(&(pp)->internal.data))
114-#define cstl_iter_dec(pp) (CSTL_ASSERT((pp) && CSTL_CHK_ITER_IS_BIDIR(*(pp))), (pp)->vptr->dec(&(pp)->internal.data))
113+#define cstl_iter_inc(pp) ((pp)->vptr->inc(&(pp)->internal.data))
114+#define cstl_iter_dec(pp) (CSTL_ASSERT(CSTL_CHK_ITER_IS_BIDIR(*(pp))), (pp)->vptr->dec(&(pp)->internal.data))
115115 #define cstl_iter_eq(p, x) ((p).vptr->eq((p).internal.data, (x).internal.data))
116116 #define cstl_iter_ne(p, x) ((p).vptr->ne((p).internal.data, (x).internal.data))
117117 #define cstl_iter_at(p, n) (CSTL_ASSERT(CSTL_CHK_ITER_IS_RAND(p)), (p).vptr->at((p).internal.data, n))
118118 #define cstl_iter_add(p, n) (CSTL_ASSERT(CSTL_CHK_ITER_IS_RAND(p)), (p).vptr->add((p).internal.data, n))
119119 #define cstl_iter_sub(p, n) (CSTL_ASSERT(CSTL_CHK_ITER_IS_RAND(p)), (p).vptr->sub((p).internal.data, n))
120-#define cstl_iter_inc_n(pp, n) (CSTL_ASSERT((pp) && CSTL_CHK_ITER_IS_RAND(*(pp))), (pp)->vptr->inc_n(&(pp)->internal.data, n))
121-#define cstl_iter_dec_n(pp, n) (CSTL_ASSERT((pp) && CSTL_CHK_ITER_IS_RAND(*(pp))), (pp)->vptr->dec_n(&(pp)->internal.data, n))
120+#define cstl_iter_inc_n(pp, n) (CSTL_ASSERT(CSTL_CHK_ITER_IS_RAND(*(pp))), (pp)->vptr->inc_n(&(pp)->internal.data, n))
121+#define cstl_iter_dec_n(pp, n) (CSTL_ASSERT(CSTL_CHK_ITER_IS_RAND(*(pp))), (pp)->vptr->dec_n(&(pp)->internal.data, n))
122122 #define cstl_iter_diff(p, x) (CSTL_ASSERT(CSTL_CHK_ITER_IS_RAND(p)), (p).vptr->diff((p).internal.data, (x).internal.data))
123123 #define cstl_iter_lt(p, x) (CSTL_ASSERT(CSTL_CHK_ITER_IS_RAND(p)), (p).vptr->lt((p).internal.data, (x).internal.data))
124124 #define cstl_iter_le(p, x) (CSTL_ASSERT(CSTL_CHK_ITER_IS_RAND(p)), (p).vptr->le((p).internal.data, (x).internal.data))
Show on old repository browser