replace assert with CC_ASSERT (#10913)

* replace assert with CC_ASSERT
This commit is contained in:
minggo
2022-04-29 10:18:41 +08:00
committed by GitHub
parent fa25709788
commit 8e7669bf92
65 changed files with 303 additions and 627 deletions
+2 -2
View File
@@ -193,7 +193,7 @@ uint8_t *MessageQueue::allocateImpl(uint32_t allocatedSize, uint32_t const reque
if (_immediateMode) {
pushMessages();
pullMessages();
assert(_reader.newMessageCount == 2);
CC_ASSERT(_reader.newMessageCount == 2);
executeMessages();
executeMessages();
}
@@ -244,7 +244,7 @@ Message *MessageQueue::readMessage() noexcept {
Message *const msg = _reader.lastMessage->getNext();
_reader.lastMessage = msg;
--_reader.newMessageCount;
assert(msg);
CC_ASSERT(msg);
return msg;
}