X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fdebug.h;h=257682933d3fcf7576e79e8f2d68c79ab05e5066;hb=d86a921be38f9dfe999bfd36bc3a8e76a2ad929f;hp=cccaf8ccee6c394586522c8426a2867c4dd3de6c;hpb=e92aca128b557ad97a2e1d8b1d1a801550d76830;p=bertos.git diff --git a/bertos/cfg/debug.h b/bertos/cfg/debug.h index cccaf8cc..25768293 100644 --- a/bertos/cfg/debug.h +++ b/bertos/cfg/debug.h @@ -30,6 +30,10 @@ * * --> * + * \defgroup debug Debugging facilities and macros + * \ingroup core + * \{ + * * \brief Simple debug facilities for hosted and embedded C/C++ applications. * * Debug output goes to stderr in hosted applications. @@ -160,7 +164,13 @@ #endif /* !CPU_HARVARD */ #if !CONFIG_KDEBUG_ASSERT_NO_TEXT + /** + * Assert a pre-condition on code. + */ #define ASSERT(x) ((void)(LIKELY(x) ? 0 : __bassert(#x, THIS_FILE, __LINE__))) + /** + * Assert a pre-condition and give explanation message when assert fails + */ #define ASSERT2(x, help) ((void)(LIKELY(x) ? 0 : __bassert(help " (" #x ")", THIS_FILE, __LINE__))) #else #define ASSERT(x) ((void)(LIKELY(x) ? 0 : __bassert("", THIS_FILE, __LINE__))) @@ -324,4 +334,6 @@ #endif /* _DEBUG */ +/** \} */ // defgroup debug + #endif /* BERTOS_DEBUG_H */