* 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. */
| 1165 | * @param hook is the hook function. |
| 1166 | */ |
| 1167 | void 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. |
no outgoing calls
no test coverage detected