|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Simple RAII-based function tracing utility. More...
#include <stdio.h>Go to the source code of this file.
Classes | |
| class | Trace |
| RAII helper for function entry/exit tracing. More... | |
Macros | |
| #define | TRACE(name) Trace __trace__##__LINE__(__FILE__, __LINE__, name) |
| Macro to create a Trace object with current file/line info. | |
Simple RAII-based function tracing utility.
This file provides a lightweight mechanism for tracing function entry and exit points during debugging. It uses RAII to automatically print entry/exit messages without explicit logging calls.
The TRACE macro creates a unique local variable using LINE to avoid naming conflicts when multiple TRACE calls appear in the same scope.
Definition in file trace.H.
| #define TRACE | ( | name | ) | Trace __trace__##__LINE__(__FILE__, __LINE__, name) |