Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

debug File Reference


Detailed Description

The debugging and logging framework.

#include <nmstl/internal.h>

Compounds

class  debug
 An internal class used to implement the debugging framework. More...

struct  ltstr

Defines

#define NMSTL_DEBUG_FILE_H   __FILE__
#define NMSTL_DEBUG_LEVEL   ({ static int l = debug::get().get_level_for_file(NMSTL_DEBUG_FILE_H); l; })
#define NMSTL_IF_DEBUG   (NMSTL_DEBUG_LEVEL >= debug_msg::level)
#define NMSTL_DEBUG(level)   (NMSTL_DEBUG_LEVEL >= debug_msg::level) && debug::get() ^ debug_msg(__FILE__, __LINE__, __PRETTY_FUNCTION__, debug_msg::level, 0)
#define DEBUG   NMSTL_DEBUG(debug)
#define INFO   NMSTL_DEBUG(info)
#define NOTICE   NMSTL_DEBUG(notice)
#define WARN   NMSTL_DEBUG(warn)
#define ERROR   NMSTL_DEBUG(error)
#define CRIT   NMSTL_DEBUG(crit)
#define ALERT   NMSTL_DEBUG(alert)
#define FATAL   NMSTL_DEBUG(fatal)
#define COREDUMP   NMSTL_DEBUG(coredump)
#define ASSERT(a)   ((a) || (COREDUMP << "Assertion failed: " #a, true))

Variables

 NMSTL_NAMESPACE_BEGIN
 NMSTL_NAMESPACE_END


Define Documentation

#define ALERT   NMSTL_DEBUG(alert)
 

#define ASSERT      ((a) || (COREDUMP << "Assertion failed: " #a, true))
 

#define COREDUMP   NMSTL_DEBUG(coredump)
 

#define CRIT   NMSTL_DEBUG(crit)
 

#define DEBUG   NMSTL_DEBUG(debug)
 

#define ERROR   NMSTL_DEBUG(error)
 

#define FATAL   NMSTL_DEBUG(fatal)
 

#define INFO   NMSTL_DEBUG(info)
 

#define NMSTL_DEBUG level       (NMSTL_DEBUG_LEVEL >= debug_msg::level) && debug::get() ^ debug_msg(__FILE__, __LINE__, __PRETTY_FUNCTION__, debug_msg::level, 0)
 

#define NMSTL_DEBUG_FILE_H   __FILE__
 

#define NMSTL_DEBUG_LEVEL   ({ static int l = debug::get().get_level_for_file(NMSTL_DEBUG_FILE_H); l; })
 

#define NMSTL_IF_DEBUG   (NMSTL_DEBUG_LEVEL >= debug_msg::level)
 

#define NOTICE   NMSTL_DEBUG(notice)
 

#define WARN   NMSTL_DEBUG(warn)
 


Variable Documentation

NMSTL_NAMESPACE_BEGIN
 

NMSTL_NAMESPACE_END
 


Generated on Fri Dec 20 13:35:10 2002 for NMSTL