00001 00002 #ifndef __JBXL_GRAPHIC_DEBUG_H_ 00003 #define __JBXL_GRAPHIC_DEBUG_H_ 00004 00005 00013 #include "gio.h" 00014 #include "openX.h" 00015 00016 00017 extern int DebugMode; 00018 00019 00020 #ifndef DISABLE_X11 00021 void disp_img(WSGraph vp, char* mesg); 00022 #endif 00023 00024 void write_img(char* fn, WSGraph vp, char* mesg); 00025 00026 00027 #ifdef EBUG 00028 #ifndef DISABLE_X11 00029 #define DEBUG_DISP_IMG(vp, mesg) disp_img(vp, mesg) 00030 #endif 00031 #define DEBUG_WRITE_IMG(fn, vp, mesg) write_img(fn, vp, mesg) 00032 #else 00033 #ifndef DISABLE_X11 00034 #define DEBUG_DISP_IMG(vp, mesg) {} 00035 #endif 00036 #define DEBUG_WRITE_IMG(fn, vp, mesg) {} 00037 #endif 00038 00039 #endif // __JBXL_GRAPHIC_DEBUG_H_ 00040