JunkBox_Lib  1.10.2
gdebug.h
Go to the documentation of this file.
1 #ifndef __JBXL_GRAPHIC_DEBUG_H_
2 #define __JBXL_GRAPHIC_DEBUG_H_
3 
10 #include "gio.h"
11 #include "openX.h"
12 
13 extern int DebugMode;
14 
15 
16 #ifndef DISABLE_X11
17  void disp_img(WSGraph vp, char* mesg);
18 #endif
19 
20 void write_img(char* fn, WSGraph vp, char* mesg);
21 
22 
23 #ifdef EBUG
24  #ifndef DISABLE_X11
25  #define DEBUG_DISP_IMG(vp, mesg) disp_img(vp, mesg)
26  #endif
27  #define DEBUG_WRITE_IMG(fn, vp, mesg) write_img(fn, vp, mesg)
28 #else
29  #ifndef DISABLE_X11
30  #define DEBUG_DISP_IMG(vp, mesg) {}
31  #endif
32  #define DEBUG_WRITE_IMG(fn, vp, mesg) {}
33 #endif
34 
35 #endif // __JBXL_GRAPHIC_DEBUG_H_
36 
void disp_img(WSGraph vp, char *mesg)
Definition: gdebug.c:11
int DebugMode
ON の場合 ライブラリ全体がデバックモードであることを示す.デフォルトは OFF.
Definition: tools.c:17
void write_img(char *fn, WSGraph vp, char *mesg)
Definition: gdebug.c:27
グラフィック用ファイル入出力関数ヘッダ
X-Winow 表示用関数ヘッダ
Definition: gdata.h:42