グラフィック環境でのデバック用ヘッダ More...
#include "gio.h"
#include "openX.h"
Go to the source code of this file.
Defines | |
#define | DEBUG_DISP_IMG(vp, mesg) {} |
#define | DEBUG_WRITE_IMG(fn, vp, mesg) {} |
Functions | |
void | disp_img (WSGraph vp, char *mesg) |
void | write_img (char *fn, WSGraph vp, char *mesg) |
Variables | |
int | DebugMode |
ON の場合 ライブラリ全体がデバックモードであることを示す.デフォルトは OFF.. |
Definition in file gdebug.h.
void disp_img | ( | WSGraph | vp, | |
char * | mesg | |||
) |
Definition at line 14 of file gdebug.c.
References DebugMode, disp_image(), displayClose(), MONOC, and OFF.
00015 { 00016 openX xd; 00017 00018 if (DebugMode==OFF) return; 00019 00020 fprintf(stderr, "%s", mesg); 00021 fflush(stderr); 00022 xd = disp_image(vp, 0, 0, MONOC); 00023 getchar(); 00024 displayClose(xd); 00025 }
void write_img | ( | char * | fn, | |
WSGraph | vp, | |||
char * | mesg | |||
) |
Definition at line 31 of file gdebug.c.
References DebugMode, OFF, and write_wsg_file().
00032 { 00033 if (DebugMode==OFF) return; 00034 00035 fprintf(stderr, "%s", mesg); 00036 fflush(stderr); 00037 write_wsg_file(fn, vp); 00038 }
int DebugMode |
Definition at line 18 of file tools.c.
Referenced by disp_img(), and write_img().