Index: [thread] [date] [subject] [author]
  From: Andrew Apted <ajapted@netspace.net.au>
  To  : ggi-develop@eskimo.com
  Date: Fri, 4 Sep 1998 13:54:17 +1000

Re: Improved debugging system for libggi

WHS writes:

>  Isn't it much nicer to use debug prefixes (inxfixes, postfixes) like I
>  use in gsi, e.g. use GGI_DEBUG_CORE = n to give level n output of the
>  core section, GGI_DEBUG_EVENTS=0 switches off event  messages.

That sounds better to me.

>  going to be a nightmare trying to remember which bit was assigned to
>  what part of libggi.
>  The way I use this in gsi is:
>  
>  #define DEBUG_PREFIX "L_"
>  #include <gsi/gsi_debug.h>
>  
>  Also, GGI_DEBUG could be used to override this, i.e. if GGI_DEBUG=1 then
>  all output with level >=1 is shown.

Yeah I do something very similiar with the debugging code of
LibDataType.  I've attached a copy of debug.h for anyone curious.

Cheers,
_____________________________________________  ____
                                               \  /
  Andrew Apted   <andrew@ggi-project.org>       \/
  

debug.h

Index: [thread] [date] [subject] [author]