グラフィック環境でのデバック用ライブラリ More...
#include "gdebug.h"
Go to the source code of this file.
Functions | |
void | disp_img (WSGraph vp, char *mesg) |
void | write_img (char *fn, WSGraph vp, char *mesg) |
Definition in file gdebug.c.
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 }