You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/09/03 11:39:04 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6995: mm: Check the function result with suitable macro.

xiaoxiang781216 commented on code in PR #6995:
URL: https://github.com/apache/incubator-nuttx/pull/6995#discussion_r962142987


##########
mm/mm_heap/mm_extend.c:
##########
@@ -77,7 +77,7 @@ void mm_extend(FAR struct mm_heap_s *heap, FAR void *mem, size_t size,
 
   /* Take the memory manager semaphore */
 
-  DEBUGVERIFY(mm_takesemaphore(heap));
+  DEBUGASSERT(mm_takesemaphore(heap));

Review Comment:
   but DEBUGASSERT become empty when CONFIG_DEBUG_ASSERTIONS isn't defined



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org