gLib/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.

Defines

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


Define Documentation

#define DEBUG_DISP_IMG ( vp,
mesg   )     {}

Definition at line 34 of file gdebug.h.

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

Definition at line 36 of file gdebug.h.


Function Documentation

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 }

Here is the call graph for this function:

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 }

Here is the call graph for this function:


Variable Documentation

int DebugMode

Definition at line 18 of file tools.c.

Referenced by disp_img(), and write_img().


Generated on 15 Nov 2023 for JunkBox_Lib by  doxygen 1.6.1