Simplify code
This commit is contained in:
1 parent
9dfcf41b64
commit
0f883d2ecf
1 file changed
+2
-10
@@ -396,11 +396,7 @@
|
|||||||
index = n->size-1; \
|
index = n->size-1; \
|
||||||
} \
|
} \
|
||||||
if (ptr != NULL) \
|
if (ptr != NULL) \
|
||||||
M_IF_METHOD(MOVE, oplist) ( \
|
M_DO_MOVE(oplist, *ptr, n->data[index]); else \
|
||||||
M_CALL_MOVE(oplist, *ptr, n->data[index]); else \
|
|
||||||
, \
|
|
||||||
M_CALL_SET(oplist, *ptr, n->data[index]); \
|
|
||||||
) \
|
|
||||||
M_CALL_CLEAR(oplist, n->data[index]); \
|
M_CALL_CLEAR(oplist, n->data[index]); \
|
||||||
d->count --; \
|
d->count --; \
|
||||||
d->back->index = index; \
|
d->back->index = index; \
|
||||||
@@ -426,11 +422,7 @@
|
|||||||
node_t *n = d->front->node; \
|
node_t *n = d->front->node; \
|
||||||
size_t index = d->front->index; \
|
size_t index = d->front->index; \
|
||||||
if (ptr != NULL) \
|
if (ptr != NULL) \
|
||||||
M_IF_METHOD(MOVE, oplist) ( \
|
M_DO_MOVE(oplist, *ptr, n->data[index]); else \
|
||||||
M_CALL_MOVE(oplist, *ptr, n->data[index]); else \
|
|
||||||
, \
|
|
||||||
M_CALL_SET(oplist, *ptr, n->data[index]); \
|
|
||||||
) \
|
|
||||||
M_CALL_CLEAR(oplist, n->data[index]); \
|
M_CALL_CLEAR(oplist, n->data[index]); \
|
||||||
index++; \
|
index++; \
|
||||||
if (M_UNLIKELY (n->size <= index)) { \
|
if (M_UNLIKELY (n->size <= index)) { \
|
||||||
|
|||||||
Reference in new issue
Block a user