diff options
| author | Bernard Xiong <[email protected]> | 2015-06-11 11:34:43 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-06-11 11:34:43 +0800 |
| commit | 1cb9b10d87039fc4f6001da1950590c1c5fe423f (patch) | |
| tree | 0c852182d0480ba5a20080a86c9e2c7a35195bc2 /include/rtthread.h | |
| parent | a51f6afa41adc5c617e6ba98a9659096602510fa (diff) | |
| parent | 892eac2cce846d11204036ad7e8fb80c8b332258 (diff) | |
Merge pull request #501 from armink/master
[Kernel] 为RT_ASSERT添加了钩子方法
Diffstat (limited to 'include/rtthread.h')
| -rw-r--r-- | include/rtthread.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/rtthread.h b/include/rtthread.h index 9bb02abede..705795b522 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -515,6 +515,11 @@ rt_uint32_t rt_strcasecmp(const char *a, const char *b); void rt_show_version(void); +#ifdef RT_DEBUG +extern void (*rt_assert_hook)(const char* ex, const char* func, rt_size_t line); +void rt_assert_set_hook(void (*hook)(const char* ex, const char* func, rt_size_t line)); +#endif /* RT_DEBUG */ + /*@}*/ #ifdef __cplusplus |
