Woolz Image Processing  Version 1.7.5
WlzDebug.h File Reference

Defines the Woolz debug masks and function prototypes. More...

Go to the source code of this file.

Macros

#define WLZ_DBG(F, M)   ((((F)&(wlzDbgMask))==(F))?(*wlzDbgOutFn) M:WLZ_ERR_NONE)
 
#define WLZ_DBGOBJ(F, O, X)   ((((F)&(wlzDbgObjMask))==(F))?(*wlzDbgOutObjFn)((O),(X)):WLZ_ERR_NONE)
 

Typedefs

typedef enum _WlzDbgMask WlzDbgMask
 
typedef WlzErrorNum(* WlzDbgFn) (char *,...)
 
typedef WlzErrorNum(* WlzDbgObjFn) (WlzObject *, int)
 

Enumerations

enum  _WlzDbgMask {
  WLZ_DBG_NONE = (0),
  WLZ_DBG_LVL_1 = (1),
  WLZ_DBG_LVL_2 = (1<<1),
  WLZ_DBG_LVL_3 = (1<<2),
  WLZ_DBG_LVL_FN = (1<<3),
  WLZ_DBG_ALLOC = (1<<4)
}
 Woolz debug bit masks. Typedef: WlzDbgMask. More...
 

Functions

WlzErrorNum WlzDbgWrite (char *,...)
 Writes out the given debug message to the debug file. More...
 
WlzErrorNum WlzDbgObjWrite (WlzObject *, int)
 Writes out the given debug Woolz object to the woolz debug file. More...
 

Variables

WlzDbgMask wlzDbgMask
 
WlzDbgMask wlzDbgObjMask
 
void * wlzDbgData
 
void * wlzDbgObjData
 
WlzDbgFn wlzDbgOutFn
 
WlzDbgObjFn wlzDbgOutObjFn
 

Detailed Description

Defines the Woolz debug masks and function prototypes.

Author
Bill Hill
Date
March 1999
Version
Id
9cd9c6e05f4ba0824f6867ad27c6105fba689563
Address: MRC Human Genetics Unit, MRC Institute of Genetics and Molecular Medicine, University of Edinburgh, Western General Hospital, Edinburgh, EH4 2XU, UK.
Copyright (C), [2012], The University Court of the University of Edinburgh, Old College, Edinburgh, UK.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Macro Definition Documentation

#define WLZ_DBGOBJ (   F,
  O,
 
)    ((((F)&(wlzDbgObjMask))==(F))?(*wlzDbgOutObjFn)((O),(X)):WLZ_ERR_NONE)

Typedef Documentation

typedef enum _WlzDbgMask WlzDbgMask
typedef WlzErrorNum(* WlzDbgFn) (char *,...)
typedef WlzErrorNum(* WlzDbgObjFn) (WlzObject *, int)

Variable Documentation

WlzDbgMask wlzDbgMask
WlzDbgMask wlzDbgObjMask
void* wlzDbgData

Referenced by WlzDbgWrite().

void* wlzDbgObjData

Referenced by WlzDbgObjWrite().

WlzDbgFn wlzDbgOutFn
WlzDbgObjFn wlzDbgOutObjFn