GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
FAQ
Search
Memberlist
Usergroups
Register
Profile
Log in to check your private messages
Log in
Is it easy to package the GTK+ Libraries with an application
Goto page
Previous
1
,
2
GTK+ Forums Forum Index
->
General GTK+ Discussion
Author
Message
wheels53
Familiar Face
Joined: 13 Feb 2007
Posts: 13
Posted: Fri Apr 27, 2007 5:01 pm
Post subject:
Figured it out last night, thanks.
Back to top
wheels53
Familiar Face
Joined: 13 Feb 2007
Posts: 13
Posted: Tue May 01, 2007 2:30 am
Post subject:
Is there a way to prevent g_debug messages from being compiled?
Back to top
openldev
Never Seen the Sunlight
Joined: 21 Sep 2005
Posts: 372
Location: State College, Pennsylvania
Posted: Tue May 01, 2007 8:10 pm
Post subject:
The "glib/gmessages.h" file defines g_debug() as follows:
Code:
(Plaintext)
1
2
3
4
5
6
7
#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.
Back to top
wheels53
Familiar Face
Joined: 13 Feb 2007
Posts: 13
Posted: Thu May 31, 2007 10:46 pm
Post subject:
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:
(Plaintext)
1
2
3
#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]
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
GTK+ Forums Forum Index
->
General GTK+ Discussion
All times are GMT
Goto page
Previous
1
,
2
Page
2
of
2
Powered by
phpBB
© 2001, 2005 phpBB Group
CodeBB
1.0 Beta 2
Protected by
Anti-Spam ACP