12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #include <sys/__assert.h>
- #include <zephyr.h>
- #ifdef CONFIG_ASSERT_NO_FILE_INFO
- __weak void assert_post_action(void)
- #else
- __weak void assert_post_action(const char *file, unsigned int line)
- #endif
- {
- #ifndef CONFIG_ASSERT_NO_FILE_INFO
- ARG_UNUSED(file);
- ARG_UNUSED(line);
- #endif
- #ifdef CONFIG_USERSPACE
-
- if (k_is_user_context()) {
- k_oops();
- }
- #endif
- k_panic();
- }
|