MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_assert_set_hook

Function rt_assert_set_hook

src/kservice.c:1167–1170  ·  view source on GitHub ↗

* This function will set a hook function to RT_ASSERT(EX). It will run when the expression is false. * * @param hook is the hook function. */

Source from the content-addressed store, hash-verified

1165 * @param hook is the hook function.
1166 */
1167void rt_assert_set_hook(void (*hook)(const char *ex, const char *func, rt_size_t line))
1168{
1169 rt_assert_hook = hook;
1170}
1171
1172/**
1173 * The RT_ASSERT function.

Callers 6

primary_cpu_entryFunction · 0.85
primary_cpu_entryFunction · 0.85
rt_hw_board_initFunction · 0.85
primary_cpu_entryFunction · 0.85
primary_cpu_entryFunction · 0.85
primary_cpu_entryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected