rutz::debug Namespace Reference


Functions

void abort_aux (const char *what, const char *where, int line_no) throw ()
 Helper function called frmo the GVX_ABORT() macro.
void dump (const char *what, int level, const char *where, int line_no) throw ()
void start_newline () throw ()
void panic_aux (const char *what, const char *where, int line_no) throw ()
void assert_aux (const char *what, const char *where, int line_no) throw ()
void precondition_aux (const char *what, const char *where, int line_no) throw ()
void postcondition_aux (const char *what, const char *where, int line_no) throw ()
void invariant_aux (const char *what, const char *where, int line_no) throw ()
int create_key (const char *filename)
 Allocate a debug key for the given filename.
bool is_valid_key (int key)
 Query whether the given value is a valid debug key.
int lookup_key (const char *filename)
 Get the debug key associated with the given filename.
int get_level_for_key (int key)
 Get the current debug level associated with the given debug key.
void set_level_for_key (int key, int level)
 Set the current debug level for the given debug key.
const char * get_filename_for_key (int key)
 Get the filename associated with the given debug key.
void set_global_level (int lev)
void eval (const char *what, int level, const char *where, int line_no, bool nl, bool expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, char expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, unsigned char expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, short expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, unsigned short expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, int expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, unsigned int expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, long expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, unsigned long expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, float expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, double expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, const char *expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, void *expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, rutz::fstring expr) throw ()


Function Documentation

int rutz::debug::lookup_key ( const char *  filename  ) 

Get the debug key associated with the given filename.

Returns -1 if the filename is not registered.

Definition at line 192 of file debug.cc.

References GVX_MUTEX_LOCK.

Referenced by Gtrace_Init(), and GVX_DBG_REGISTER::setOneLevelc().


The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Mon Feb 11 05:09:25 2008 by Doxygen version 1.5.2.