XinStellaris commented on code in PR #7764:
URL: https://github.com/apache/nuttx/pull/7764#discussion_r1039604662


##########
libs/libc/assert/lib_assert.c:
##########
@@ -23,16 +23,24 @@
  ****************************************************************************/
 
 #include <nuttx/arch.h>
+#include <nuttx/notifier.h>
 
 #include <assert.h>
 #include <stdlib.h>
 
+/****************************************************************************
+ * Private Data
+ ****************************************************************************/
+
+ATOMIC_NOTIFIER_HEAD(g_assert_notifier_list);
+
 /****************************************************************************
  * Public Functions
  ****************************************************************************/
 
 void _assert(FAR const char *filename, int linenum)
 {
+  atomic_notifier_call_chain(&g_assert_notifier_list, 0, NULL);

Review Comment:
   Will move all the code to another patch



-- 
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-unsubscr...@nuttx.apache.org

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

Reply via email to