JunkBox_Lib 1.10.1
Loading...
Searching...
No Matches
gdebug.h File Reference

グラフィック環境でのデバック用ヘッダ More...

#include "gio.h"
#include "openX.h"
Include dependency graph for gdebug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#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.
 

Detailed Description

Author
Fumi.Iseki (C)

Definition in file gdebug.h.

Macro Definition Documentation

◆ DEBUG_DISP_IMG

#define DEBUG_DISP_IMG ( vp,
mesg )   {}

Definition at line 30 of file gdebug.h.

◆ DEBUG_WRITE_IMG

#define DEBUG_WRITE_IMG ( fn,
vp,
mesg )   {}

Definition at line 32 of file gdebug.h.

Function Documentation

◆ disp_img()

void disp_img ( WSGraph vp,
char * mesg )

Definition at line 11 of file gdebug.c.

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}
#define OFF
Definition common.h:231
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 openX.h:35
int DebugMode
ON の場合 ライブラリ全体がデバックモードであることを示す.デフォルトは OFF.
Definition tools.c:17

References DebugMode, disp_image(), displayClose(), MONOC, and OFF.

Here is the call graph for this function:

◆ write_img()

void write_img ( char * fn,
WSGraph vp,
char * mesg )

Definition at line 27 of file gdebug.c.

28{
29 if (DebugMode==OFF) return;
30
31 fprintf(stderr, "%s", mesg);
32 fflush(stderr);
33 write_wsg_file(fn, vp);
34}
int write_wsg_file(const char *fname, WSGraph gr)
Definition gio.c:34

References DebugMode, OFF, and write_wsg_file().

Here is the call graph for this function:

Variable Documentation

◆ DebugMode

int DebugMode
extern

Definition at line 17 of file tools.c.

Referenced by disp_img(), and write_img().