BEEP-8 Helper Lib 1.0.0
|
Debug tracing macros for logging and monitoring program execution. More...
#include <tostr.h>
Go to the source code of this file.
Macros | |
#define | PASS() |
Logs a simple passage message. | |
#define | TRACE(x) |
Logs a trace message with a variable or expression. | |
#define | WATCH(x) |
Logs a watch message with the name and value of a variable. | |
Debug tracing macros for logging and monitoring program execution.
This header file provides macros for tracing and debugging purposes. The macros allow you to log function calls, variable values, and checkpoints in the code, which can help in diagnosing issues and understanding program flow.
The primary macros are:
x
.x
.Example usage:
#define PASS | ( | ) |
Logs a simple passage message.
This macro logs a message indicating the passage of code execution through this point. It includes the file name, line number, and function name.
#define TRACE | ( | x | ) |
Logs a trace message with a variable or expression.
This macro logs a message with the string representation of the variable or expression x
. It includes the file name, line number, function name, and the value of x
.
x | The variable or expression to trace. |
#define WATCH | ( | x | ) |
Logs a watch message with the name and value of a variable.
This macro logs a message with the name and string representation of the variable x
. It includes the file name, line number, function name, the name of x
, and its value.
x | The variable to watch. |