AiLibrary  v1.3.0
A single-header C++ Library from Ailurus Studio
Debug Functions

Functions providing some help to debug programs. More...

Functions

INLINE std::size_t ai::counter (const std::size_t value=0)
 Returns ID starting from zero or the specified value. More...
 
INLINE std::string ai::marker (const std::size_t value=0)
 Returns a string containing the word "Marker" and its ID. More...
 
INLINE void ai::printMarker (const std::size_t value=0)
 Calls marker() and prints result to stdout. More...
 

Detailed Description

Group of functions that can be useful if you want to debug your code

Function Documentation

◆ 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
valueOptional. The non-negative value to which the counter should be reset. Zero by default
Returns
Counter value
Here is the caller graph for this function:

◆ 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
valueOptional. The non-negative value to which the counter should be reset. Zero by default
Returns
Marker string
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printMarker()

void ai::printMarker ( const std::size_t  value = 0)

This function calls marker() and prints result to stdout

Parameters
valueOptional. The non-negative value to which the counter should be reset. Zero by default
Here is the call graph for this function: