Desafio Labsec (SGC)
Macros
trace.h File Reference
#include <iostream>

Go to the source code of this file.

Macros

#define TRACE(x)
 

Macro Definition Documentation

◆ TRACE

#define TRACE (   x)
Value:
do \
{ std::cerr <<"\e[33m"<<"[TRACE] "<<__FILE__<<"::" \
<<__func__<<"("<<__LINE__<<") - (" \
<< x <<")\e[0m"<<std::endl; } \
while (0)

This macro can be used to write usefull trace messages. Example of use:
TRACE("Something went wrong here");
TRACE(exception.toString());

Output includes the File name, function and line number.