mirror of
https://gitee.com/apaki/unicstl.git
synced 2025-05-17 19:41:36 +08:00
删除非必要assert,否则可能导致demo卡主
This commit is contained in:
parent
9322db6b62
commit
df006ba37a
@ -200,7 +200,6 @@ static void demo_stack_struct(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stack->_destory(stack);
|
|
||||||
stack_free(&stack);
|
stack_free(&stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -124,7 +124,6 @@ static uint32_t stack_capacity(struct _stack* self)
|
|||||||
static bool stack_clear(struct _stack* self)
|
static bool stack_clear(struct _stack* self)
|
||||||
{
|
{
|
||||||
assert(self != NULL);
|
assert(self != NULL);
|
||||||
assert(self->_head != NULL);
|
|
||||||
if (self->empty(self))
|
if (self->empty(self))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user