mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-12-16 16:48:04 +00:00
Improve README and doxygen comments
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
/**
|
||||
* @brief Assertion handling.
|
||||
*
|
||||
* Define **STA_ASSERT_ENABLE** in `<sta/config.hpp>` to enable module.
|
||||
* Configuration:
|
||||
* STA_ASSERT_ENABLE: Enable module
|
||||
* STA_ASSERT_DISABLE: Forces module off when defined
|
||||
* STA_HALT: Override function called after failed asserts
|
||||
* DEBUG: Automatically enables module when defined
|
||||
* NDEBUG: Forces module off when defined
|
||||
*
|
||||
* When **DEBUG** is defined the module will be enabled automatically.
|
||||
* Defining **NDEBUG** or **STA_ASSERT_DISABLE** always overrides enabling the module.
|
||||
* Both `sta::assert_failed` and `sta::assert_halt` provide weak definitions and
|
||||
* can be overridden by the application. `sta::assert_halt` is only called
|
||||
* via the **STA_HALT** macro which can also be provided by the application.
|
||||
*
|
||||
* 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
|
||||
* and will not generate any output if `<sta/debug_serial.hpp> is disabled.
|
||||
* The default implementation of `sta::assert_failed` uses **STA_DEBUG_PRINT** internally
|
||||
* and will not generate any output if the **DEBUG_SERIAL** module is disabled.
|
||||
*/
|
||||
#ifndef STA_ASSERT_HPP
|
||||
#define STA_ASSERT_HPP
|
||||
|
||||
Reference in New Issue
Block a user