mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-12-16 16:48:04 +00:00
Rework doxygen comments
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
/**
|
||||
* @brief Assertion handling.
|
||||
*
|
||||
* Define `STA_ASSERT_ENABLE` in `<sta/config.hpp>` to enable.
|
||||
* Define **STA_ASSERT_ENABLE** in `<sta/config.hpp>` to enable module.
|
||||
*
|
||||
* Defining `DEBUG` will automatically enable the module.
|
||||
* Defining `NDEBUG` will always force module to be disabled.
|
||||
* When **DEBUG** is defined the module will be enabled automatically.
|
||||
* Defining **NDEBUG** or **STA_ASSERT_DISABLE** always overrides enabling the module.
|
||||
*
|
||||
* Both `assert_failed` and `assert_halt` provide weak definitions and
|
||||
* can be overridden by the application. `assert_halt` is only called
|
||||
* via the STA_HALT macro which can also be provided by the application.
|
||||
*
|
||||
* The default implementation of `assert_failed` uses `STA_DEBUG_PRINT` internally
|
||||
* The default implementation of `assert_failed` uses **STA_DEBUG_PRINT** internally
|
||||
* and will not generate any output if `<sta/debug_serial.hpp> is disabled.
|
||||
*/
|
||||
#ifndef STA_ASSERT_HPP
|
||||
@@ -24,17 +24,16 @@
|
||||
# endif // !STA_ASSERT_ENABLE
|
||||
#endif // DEBUG
|
||||
|
||||
#ifdef NDEBUG
|
||||
#if defined(NDEBUG) || defined(STA_ASSERT_DISABLE)
|
||||
# ifdef STA_ASSERT_ENABLE
|
||||
# undef STA_ASSERT_ENABLE
|
||||
# endif // STA_ASSERT_ENABLE
|
||||
#endif // NDEBUG
|
||||
#endif // NDEBUG || STA_ASSERT_DISABLE
|
||||
|
||||
|
||||
#ifdef STA_ASSERT_ENABLE
|
||||
|
||||
#include <cstdint>
|
||||
#include <assert.h>
|
||||
|
||||
|
||||
namespace sta
|
||||
|
||||
Reference in New Issue
Block a user