JunkBox_Lib  1.10.2
gdebug.c
Go to the documentation of this file.
1 
7 #include "gdebug.h"
8 
9 #ifndef DISABLE_X11
10 
11 void disp_img(WSGraph vp, char* mesg)
12 {
13  openX xd;
14 
15  if (DebugMode==OFF) return;
16 
17  fprintf(stderr, "%s", mesg);
18  fflush(stderr);
19  xd = disp_image(vp, 0, 0, MONOC);
20  getchar();
21  displayClose(xd);
22 }
23 
24 #endif
25 
26 
27 void write_img(char* fn, WSGraph vp, char* mesg)
28 {
29  if (DebugMode==OFF) return;
30 
31  fprintf(stderr, "%s", mesg);
32  fflush(stderr);
33  write_wsg_file(fn, vp);
34 }
35 
#define OFF
Definition: common.h:231
void disp_img(WSGraph vp, char *mesg)
Definition: gdebug.c:11
void write_img(char *fn, WSGraph vp, char *mesg)
Definition: gdebug.c:27
グラフィック環境でのデバック用ヘッダ
int write_wsg_file(const char *fname, WSGraph gr)
Definition: gio.c:34
openX disp_image(WSGraph gd, int lc, int hc, int cflg)
Definition: openX.c:32
void displayClose(openX xid)
Definition: openX.c:113
#define MONOC
Definition: openX.h:45
Definition: gdata.h:42
Definition: openX.h:35
int DebugMode
ON の場合 ライブラリ全体がデバックモードであることを示す.デフォルトは OFF.
Definition: tools.c:17