Version: 6.3.1
Defines

src/INTERP_KERNEL/Log.hxx File Reference

Simple pre-processor logging utility. More...

Go to the source code of this file.

Defines

#define LOG_LEVEL   0
 define LOG_LEVEL here if it is not already defined
#define LOG(x, msg)
#define LOG3(x, msg1, msg2)

Detailed Description

Simple pre-processor logging utility.

Replaces LOG( lvl, x ) with "if(lvl <= LOG_LEVEL) std::cout << x << std::endl" when logging is active (LOG_LEVEL > 0 is defined). x is the level at which the message should be logged - if it is smaller or equal to LOG_LEVEL (which can be defined at compile-time for each file by passing option -DLOG_LEVEL=x to gcc) than the message is logged.


Define Documentation

#define LOG_LEVEL   0

define LOG_LEVEL here if it is not already defined

#define LOG (   x,
  msg 
)
#define LOG3 (   x,
  msg1,
  msg2 
)
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS