GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Mon Nov 24, 2014 6:43 am

All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Fri Apr 27, 2007 5:01 pm 
Offline
Familiar Face

Joined: Tue Feb 13, 2007 6:59 am
Posts: 13
Figured it out last night, thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 01, 2007 2:30 am 
Offline
Familiar Face

Joined: Tue Feb 13, 2007 6:59 am
Posts: 13
Is there a way to prevent g_debug messages from being compiled?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 01, 2007 8:10 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
The "glib/gmessages.h" file defines g_debug() as follows:

Code:
#ifndef G_DEBUG_DISABLE
#define g_debug(...)    g_log (G_LOG_DOMAIN,         \
                               G_LOG_LEVEL_DEBUG,    \
                               __VA_ARGS__)
#else
#define g_debug(...)
#endif


So, adding "#define G_DEBUG_DISABLE" will disable g_debug() messages.

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 10:46 pm 
Offline
Familiar Face

Joined: Tue Feb 13, 2007 6:59 am
Posts: 13
Disabling Debug stopped working so I checked the header file and it doesn't have the #ifdef G_DEBUG_DISABLE.

It's defined as follows:

Code:
#define g_debug(...)    g_log (G_LOG_DOMAIN,         \
                               G_LOG_LEVEL_DEBUG,    \
                               __VA_ARGS__)


Any idea what happened? Am I using the wrong header file version?[/code]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group