[doc][doxygen] Fix hook struct error.

Signed-off-by: supperthomas <78900636@qq.com>
This commit is contained in:
supperthomas 2024-06-27 21:37:57 +08:00 committed by Meco Man
parent 840eef1124
commit b79d5013ff
2 changed files with 7 additions and 1 deletions

View File

@ -314,12 +314,18 @@ void *rt_page_alloc(rt_size_t npages);
void rt_page_free(void *addr, rt_size_t npages);
#endif /* defined(RT_USING_SLAB) && defined(RT_USING_SLAB_AS_HEAP) */
/**
* @ingroup Hook
* @{
*/
#ifdef RT_USING_HOOK
void rt_malloc_sethook(void (*hook)(void **ptr, rt_size_t size));
void rt_realloc_set_entry_hook(void (*hook)(void **ptr, rt_size_t size));
void rt_realloc_set_exit_hook(void (*hook)(void **ptr, rt_size_t size));
void rt_free_sethook(void (*hook)(void **ptr));
#endif /* RT_USING_HOOK */
/**@}*/
#endif /* RT_USING_HEAP */

View File

@ -594,7 +594,7 @@ static void (*rt_realloc_exit_hook)(void **ptr, rt_size_t size);
static void (*rt_free_hook)(void **ptr);
/**
* @addtogroup Hook
* @ingroup Hook
* @{
*/