diff options
| author | zms123456 <[email protected]> | 2024-05-07 08:40:30 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-06 20:40:30 -0400 |
| commit | 9112dffec8bd249c0c66e4cc87083c8b37c100ae (patch) | |
| tree | 125815f34687f21daafaf10908ecd573a7f2987c /include/rtthread.h | |
| parent | 12ad1703dfff7ab5a2d281fb56ff350a01c01dad (diff) | |
[src][Kconfig]make RT_ASSERT independent of RT_USING_DEUBG
Diffstat (limited to 'include/rtthread.h')
| -rw-r--r-- | include/rtthread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rtthread.h b/include/rtthread.h index a511a1f5c5..b73f63f38a 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -733,7 +733,7 @@ int __rt_ffs(int value); void rt_show_version(void); -#ifdef RT_USING_DEBUG +#ifdef RT_DEBUGING_ASSERT 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)); void rt_assert_handler(const char *ex, const char *func, rt_size_t line); @@ -745,7 +745,7 @@ if (!(EX)) \ } #else #define RT_ASSERT(EX) -#endif /* RT_USING_DEBUG */ +#endif /* RT_DEBUGING_ASSERT */ #ifdef RT_DEBUGING_CONTEXT /* Macro to check current context */ |
