mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
2006-11-22 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-actor.c: * clutter/clutter-alpha.c: * clutter/clutter-behaviour-opacity.c: * clutter/clutter-behaviour-scale.c: * clutter/clutter-clone-texture.c: * clutter/clutter-feature.c: * clutter/clutter-label.c: * clutter/clutter-main.c: * clutter/clutter-stage.c: * clutter/clutter-texture.c * clutter/clutter-timeline.c: * clutter/clutter-debug.h: Make CLUTTER_NOTE() just take a string rather than a func. Add more default context to output. * configure.ac: Fix flag and add more help docs for --ebable-debug option.
This commit is contained in:
@ -19,12 +19,13 @@ typedef enum {
|
||||
|
||||
#ifdef CLUTTER_ENABLE_DEBUG
|
||||
|
||||
#define CLUTTER_NOTE(type,action) G_STMT_START { \
|
||||
#define CLUTTER_NOTE(type,x,a...) G_STMT_START { \
|
||||
if (clutter_debug_flags & CLUTTER_DEBUG_##type) \
|
||||
{ action; } } G_STMT_END
|
||||
{ g_message ("[" #type "] " G_STRLOC ": " x, ##a); } \
|
||||
} G_STMT_END
|
||||
|
||||
#define CLUTTER_MARK() CLUTTER_NOTE(MISC, g_message (G_STRLOC ": mark"))
|
||||
#define CLUTTER_DBG(x,a...) CLUTTER_NOTE(MISC, g_message (x, ##a))
|
||||
#define CLUTTER_MARK() CLUTTER_NOTE(MISC, "== mark ==")
|
||||
#define CLUTTER_DBG(x) { a }
|
||||
|
||||
#define CLUTTER_GLERR() G_STMT_START { \
|
||||
if (clutter_debug_flags & CLUTTER_DEBUG_GL) \
|
||||
@ -36,7 +37,7 @@ typedef enum {
|
||||
#else /* !CLUTTER_ENABLE_DEBUG */
|
||||
|
||||
#define CLUTTER_NOTE(type,action)
|
||||
#define CLUTTER_DBG(x,a...)
|
||||
#define CLUTTER_DBG(x)
|
||||
#define CLUTTER_GLERR()
|
||||
|
||||
#endif /* CLUTTER_ENABLE_DEBUG */
|
||||
|
Reference in New Issue
Block a user