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

グラフィック環境でのデバック用ライブラリ More...

#include "gdebug.h"
Include dependency graph for gdebug.c:

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)
 

Detailed Description

Author
Fumi.Iseki (C)

Definition in file gdebug.c.

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: