mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 00:03:35 +08:00
libuavcan core now uses UAVCAN_ASSERT() instead of assert() (autoreplace)
This commit is contained in:
@@ -26,7 +26,7 @@ void LimitedPoolAllocator::deallocate(const void* ptr)
|
||||
{
|
||||
allocator_.deallocate(ptr);
|
||||
|
||||
assert(used_blocks_ > 0);
|
||||
UAVCAN_ASSERT(used_blocks_ > 0);
|
||||
if (used_blocks_ > 0)
|
||||
{
|
||||
used_blocks_--;
|
||||
|
||||
Reference in New Issue
Block a user