#include "YACSBasesExport.hxx"
#include "Exception.hxx"
#include <iostream>
#include <sstream>
Go to the source code of this file.
◆ DEBTRACE
◆ DEBUG_YACSTRACE
| #define DEBUG_YACSTRACE |
( |
|
msg | ) |
YACSTRACE(7,msg) |
◆ ERROR_YACSTRACE
| #define ERROR_YACSTRACE |
( |
|
msg | ) |
YACSTRACE(0,msg) |
◆ GURU_YACSTRACE
| #define GURU_YACSTRACE |
( |
|
msg | ) |
YACSTRACE(99,msg) |
◆ INFO_YACSTRACE
| #define INFO_YACSTRACE |
( |
|
msg | ) |
YACSTRACE(2,msg) |
◆ WARNING_YACSTRACE
| #define WARNING_YACSTRACE |
( |
|
msg | ) |
YACSTRACE(1,msg) |
◆ YACSTRACE
| #define YACSTRACE |
( |
|
level, |
|
|
|
msg |
|
) |
| |
Value:
{ \
AppendTimeClock(std::cerr); \
std::cerr << __FILE__ << " [" << __LINE__ << "] : " << msg << std::endl; \
} }
YACSTRACE macro for dynamic trace: print only if YACS_TRACELEVEL environment variable is set and level is less than its value.
Definition at line 41 of file YacsTrace.hxx.
◆ YASSERT
| #define YASSERT |
( |
|
val | ) |
{ if( !(val) ) { std::ostringstream mess; mess << __FILE__ << " [" <<__LINE__<< "] : assertion " << #val << " failed"; throw YACS::Exception(mess.str()); } } |
◆ AttachDebugger()
Definition at line 52 of file YacsTrace.cxx.
54 if(getenv (
"YACSDEBUGGER"))
56 std::stringstream exec;
57 exec <<
"$YACSDEBUGGER " << getpid() <<
"&";
58 std::cerr << exec.str() << std::endl;
59 system(exec.str().c_str());
Referenced by YACS::ENGINE::RefCounter::~RefCounter().