Functions providing some help to debug programs.
More...
Group of functions that can be useful if you want to debug your code
◆ counter()
std::size_t ai::counter |
( |
const std::size_t |
value = 0 | ) |
|
This function returns ID (increases it at each call) starting from zero or the specified non-negative value
- Parameters
-
value | Optional. The non-negative value to which the counter should be reset. Zero by default |
- Returns
- Counter value
◆ marker()
std::string ai::marker |
( |
const std::size_t |
value = 0 | ) |
|
This function returns a string containing the word "marker" and its ID (increases it at each call). ID specified in the same way as in the function counter()
- Parameters
-
value | Optional. The non-negative value to which the counter should be reset. Zero by default |
- Returns
- Marker string
◆ printMarker()
void ai::printMarker |
( |
const std::size_t |
value = 0 | ) |
|
This function calls marker() and prints result to stdout
- Parameters
-
value | Optional. The non-negative value to which the counter should be reset. Zero by default |