|
|
#ifndef _FUN_FUN_H #define _FUN_FUN_H #include#include "config.h" #include #include using std::cout; using std::cerr; using std::hex; using std::dec; using std::endl; // See test/why.cpp. #define REIMPLEMENT_INHERITED_TEMPLATES 0 #define NOT_IMPLEMENTED(f) QMessageBox::critical( 0, "Not Yet Implemented. Patience, my son.", QString().sprintf("%s\nPlease fix this in [%s]:[Line %d]",f,__FILE__, __LINE__ ) ); /** * The NOT_DONE macro prints out the string "NOT_DONE", the file, the line * number, and a message, if NDEBUG is not #defined at compile time. It * uses iostream, so its use looks like * * NOT_DONE("not preventing hard disk vaporization in " << dec << s << " seconds."); */ #ifndef NDEBUG #define NOT_DONE(a) std::cerr << "NOT_DONE " << __FILE__ << " " << std::dec << __LINE__ << ": " << a << std::endl #define CERR_CONDITION 1 #else #define NOT_DONE(a) 0 #define CERR_CONDITION 0 #endif #ifndef CERR #define CERR if( CERR_CONDITION ) std::cerr << __FILE__ << ": " << std::dec << __LINE__ << ": " #endif #endif // _FUN_FUN_H
| Generated by: stephan on cheyenne on Mon Aug 11 14:06:52 2003, using kdoc 2.0a54. |